Fix indentation for Trac ticket description changes.
Before this fix, the "to" was included in the markdown blocks.
This commit is contained in:
parent
b0325fef5b
commit
bad47da16e
|
@ -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)))
|
||||||
|
|
Loading…
Reference in a new issue