Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Darst <rkd@zgib.net>2009-09-12 02:13:00 (GMT)
committer Richard Darst <rkd@zgib.net>2009-09-12 02:13:00 (GMT)
commitb0764ddc7272d02b6de852e3636c88f72d15bae3 (patch)
treed3c6db3ccea45c73c3a15139899f4a57ac248a3a
parentc7bf7697115613475c7d86e85bd16e81da242a87 (diff)
Make ReST and Text writers not write (none) for unassigned action items
- This ports the fix I made to the HTML2 writer to these writers, too. darcs-hash:20090912021300-82ea9-b9d7944864971c43089f9933a1e6d462bfdbfd7c.gz
-rw-r--r--writers.py20
1 files changed, 14 insertions, 6 deletions
diff --git a/writers.py b/writers.py
index 66ea738..6fad476 100644
--- a/writers.py
+++ b/writers.py
@@ -687,14 +687,18 @@ class ReST(_BaseWriter):
ActionItemsPerson.append(wrapList("* %s"%rst(m.line), 2))
m.assigned = True
# unassigned items:
- ActionItemsPerson.append("* **UNASSIGNED**")
+ Unassigned = [ ]
+ Unassigned.append("* **UNASSIGNED**")
numberUnassigned = 0
for m in M.minutes:
if m.itemtype != "ACTION": continue
if getattr(m, 'assigned', False): continue
- ActionItemsPerson.append(wrapList("* %s"%rst(m.line), 2))
+ Unassigned.append(wrapList("* %s"%rst(m.line), 2))
numberUnassigned += 1
- if numberUnassigned == 0: ActionItemsPerson.append(" * (none)")
+ if numberUnassigned == 0:
+ Unassigned.append(" * (none)")
+ if numberUnassigned > 1:
+ ActionItemsPerson.extend(Unassigned)
ActionItemsPerson = "\n\n".join(ActionItemsPerson)
# People Attending
@@ -827,14 +831,18 @@ class Text(_BaseWriter):
ActionItemsPerson.append(wrapList("* %s"%text(m.line), 2))
m.assigned = True
# unassigned items:
- ActionItemsPerson.append("* **UNASSIGNED**")
+ Unassigned = [ ]
+ Unassigned.append("* **UNASSIGNED**")
numberUnassigned = 0
for m in M.minutes:
if m.itemtype != "ACTION": continue
if getattr(m, 'assigned', False): continue
- ActionItemsPerson.append(wrapList("* %s"%text(m.line), 2))
+ Unassigned.append(wrapList("* %s"%text(m.line), 2))
numberUnassigned += 1
- if numberUnassigned == 0: ActionItemsPerson.append(" * (none)")
+ if numberUnassigned == 0:
+ Unassigned.append(" * (none)")
+ if numberUnassigned > 1:
+ ActionItemsPerson.extend(Unassigned)
ActionItemsPerson = "\n".join(ActionItemsPerson)
# People Attending