summaryrefslogtreecommitdiff
path: root/scripts/html_task.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/html_task.py')
-rwxr-xr-xscripts/html_task.py8
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