diff options
author | Richard Darst <rkd@zgib.net> | 2009-08-31 21:37:29 (GMT) |
---|---|---|
committer | Richard Darst <rkd@zgib.net> | 2009-08-31 21:37:29 (GMT) |
commit | 09a6f0392311d4ab75d6ad39d1a9099cc6c82ae4 (patch) | |
tree | ae9feeb3af2a3ebae5d3aeee2098751848543577 /writers.py | |
parent | 5c72faaf6f9e5d2f77dbfda5969dc6854bc7374a (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.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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(): |