From: Chip Black Date: Fri, 27 Jan 2012 10:05:46 +0000 (-0600) Subject: Wrap things in a little less silly fashion X-Git-Url: http://git.bytex64.net/?a=commitdiff_plain;p=trac-attack.git Wrap things in a little less silly fashion --- diff --git a/trac-attack.py b/trac-attack.py index 98abb2d..5df0585 100755 --- a/trac-attack.py +++ b/trac-attack.py @@ -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():