Fix indentation for Trac ticket description changes.

Before this fix, the "to" was included in the markdown blocks.
This commit is contained in:
Bernhard Morgenstern 2015-10-22 22:06:04 +02:00 committed by Tim Abbott
parent b0325fef5b
commit bad47da16e

View file

@ -107,7 +107,7 @@ class ZulipPlugin(Component):
field_changes = [] field_changes = []
for key in old_values.keys(): for key in old_values.keys():
if key == "description": if key == "description":
content += '- Changed %s from %s to %s' % (key, markdown_block(old_values.get(key)), content += '- Changed %s from %s\n\nto %s' % (key, markdown_block(old_values.get(key)),
markdown_block(ticket.values.get(key))) markdown_block(ticket.values.get(key)))
elif old_values.get(key) == "": elif old_values.get(key) == "":
field_changes.append('%s: => **%s**' % (key, ticket.values.get(key))) field_changes.append('%s: => **%s**' % (key, ticket.values.get(key)))