From e415194853416af19007ccd2e9d3cb65c38dce84 Mon Sep 17 00:00:00 2001 From: Richard Darst Date: Sat, 19 Sep 2009 03:30:01 +0000 Subject: Have all writers say (none) for no action items darcs-hash:20090919033001-82ea9-2eba1daba5ea870df027d7985a341203ab62df9e.gz --- (limited to 'writers.py') 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 -- cgit v0.9.1