Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/writers.py
diff options
context:
space:
mode:
Diffstat (limited to 'writers.py')
-rw-r--r--writers.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/writers.py b/writers.py
index 4e43516..4ac9770 100644
--- a/writers.py
+++ b/writers.py
@@ -767,12 +767,16 @@ class Text(_BaseWriter):
M = self.M
# Action Items
ActionItems = [ ]
+ numActionItems = 0
ActionItems.append(self.heading('Action items'))
for m in M.minutes:
# The hack below is needed because of pickling problems
if m.itemtype != "ACTION": continue
#already escaped
ActionItems.append(wrapList("* %s"%text(m.line), indent=0))
+ numActionItems += 1
+ if numActionItems == 0:
+ ActionItems.append("* (none)")
ActionItems = "\n".join(ActionItems)
def actionItemsPerson(self):
@@ -889,12 +893,16 @@ class MediaWiki(_BaseWriter):
M = self.M
# Action Items
ActionItems = [ ]
+ numActionItems = 0
ActionItems.append(self.heading('Action items'))
for m in M.minutes:
# The hack below is needed because of pickling problems
if m.itemtype != "ACTION": continue
#already escaped
ActionItems.append("* %s"%mw(m.line))
+ numActionItems += 1
+ if numActionItems == 0:
+ ActionItems.append("* (none)")
ActionItems = "\n".join(ActionItems)
return ActionItems