humbug_trac: Use block quotes for displaying comments.

(imported from commit 0ac08177804340b1ff49d4f7c95813784d7ebcae)
This commit is contained in:
Tim Abbott 2012-10-24 18:20:34 -04:00
parent 479d0df374
commit 9b2ee6d6cc

View file

@ -27,7 +27,7 @@ def markdown_ticket_url(ticket, heading="ticket"):
return "[%s #%s](https://trac.humbughq.com/ticket/%s)" % (heading, ticket.id, ticket.id)
def markdown_block(desc):
return "\n~~~~\n%s\n~~~~\n" % (desc,)
return "\n\n>" + "\n> ".join(desc.split("\n")) + "\n"
def trac_subject(ticket):
return "Trac #%s" % ticket.id