mirror of https://github.com/zulip/zulip.git
Fix indentation for Trac ticket description changes.
Before this fix, the "to" was included in the markdown blocks.
This commit is contained in:
parent
d5435fad1d
commit
dd2ccff22b
|
@ -107,8 +107,8 @@ 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)))
|
||||||
elif ticket.values.get(key) == "":
|
elif ticket.values.get(key) == "":
|
||||||
|
|
Loading…
Reference in New Issue