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 d5435fad1d
commit dd2ccff22b
1 changed files with 2 additions and 2 deletions

View File

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