Wrap things in a little less silly fashion master
authorChip Black <bytex64@bytex64.net>
Fri, 27 Jan 2012 10:05:46 +0000 (04:05 -0600)
committerChip Black <bytex64@bytex64.net>
Fri, 27 Jan 2012 10:05:46 +0000 (04:05 -0600)
trac-attack.py

index 98abb2d..5df0585 100755 (executable)
@@ -46,7 +46,8 @@ def show_ticket(ticket):
         print "%-39s %-39s" % tuple(map(lambda x: "%s: %s" % (x[0], attributes[x[1]]), row))
 
     print
-    print description_wrap.fill(attributes['description'])
+    for line in attributes['description'].split("\n"):
+        print description_wrap.fill(line)
     print
 
 def editor():