diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/html_task.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/html_task.py b/scripts/html_task.py index 596b43b..1e6c175 100755 --- a/scripts/html_task.py +++ b/scripts/html_task.py @@ -163,7 +163,13 @@ class periject_html(html_base.myhtml): "target":"_blank"}) comment = str.string[:str.start()] + a.text(str.group()) + str.string[str.end():] - html("li").print(comment) + comment = re.split(r'\n\n+', comment) + if len(comment) > 1: + with html("li"): + for para in comment: + html("p").print(para) + else: + html("li").print(comment[0]) #-------------------- # print |