Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/writers.py
diff options
context:
space:
mode:
authorRichard Darst <rkd@zgib.net>2009-08-31 21:37:29 (GMT)
committer Richard Darst <rkd@zgib.net>2009-08-31 21:37:29 (GMT)
commit09a6f0392311d4ab75d6ad39d1a9099cc6c82ae4 (patch)
treeae9feeb3af2a3ebae5d3aeee2098751848543577 /writers.py
parent5c72faaf6f9e5d2f77dbfda5969dc6854bc7374a (diff)
Fix HTML validation when there is no initial topic
- you are allowed to use #info (or other command) before the first #topic command. This requires special handling of the HTML <li>, which I have just fixed. It now validates correctly with the w3 validator. darcs-hash:20090831213729-82ea9-351d0a485c7596ec10fcfc43b28ccc8ce3d9dbe6.gz
Diffstat (limited to 'writers.py')
-rw-r--r--writers.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/writers.py b/writers.py
index 242f210..d9a8cd4 100644
--- a/writers.py
+++ b/writers.py
@@ -335,6 +335,9 @@ class HTML2(_BaseWriter):
haveTopic = True
else:
if not inSublist:
+ if not haveTopic:
+ MeetingItems.append('<li>')
+ haveTopic = True
MeetingItems.append('<ol type="a">')
inSublist = True
if haveTopic: item = wrapList(item, 2)+"</li>"
@@ -374,6 +377,10 @@ class HTML2(_BaseWriter):
if headerPrinted:
ActionItemsPerson.append(" </ol></li>")
# unassigned items:
+ if len(ActionItemsPerson) == 0:
+ doActionItemsPerson = False
+ else:
+ doActionItemsPerson = True
ActionItemsPerson.append(" <li><b>UNASSIGNED</b><ol>")
numberUnassigned = 0
for m in self.iterActionItemsUnassigned():