Wrap things in a little less silly fashion
[trac-attack.git] / trac-attack.py
index df451ce..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():
@@ -82,7 +83,6 @@ def main():
         id = int(args[1])
         ticket = server.ticket.get(id)
         show_ticket(ticket)
-        changelog = server.ticket.getTicketFields(id)
     elif args[0] == 'comment':
         id = int(args[1])
         comment = editor()