# HG changeset patch # User Steve Losh # Date 1254194069 14400 # Node ID 68288cdc5a7f19ecc3ffdfe30a8e7e1485068dda # Parent 1bbebfb0395f23c4b83a3c0243b4f657d357514d Fix a bug when working with new tasklists. diff -r 1bbebfb0395f -r 68288cdc5a7f t.py --- a/t.py Mon Sep 28 07:27:36 2009 -0400 +++ b/t.py Mon Sep 28 23:14:29 2009 -0400 @@ -61,7 +61,7 @@ """Parse a list of tasks into tasklines suitable for writing.""" tasklines = [] - tlen = max(map(lambda t: len(t['text']), tasks)) + tlen = max(map(lambda t: len(t['text']), tasks)) if tasks else 0 for task in tasks: meta = [m for m in task.items() if m[0] != 'text']