From bad47da16e448b5bc8b9953f6b628e40091c19a4 Mon Sep 17 00:00:00 2001 From: Bernhard Morgenstern Date: Thu, 22 Oct 2015 22:06:04 +0200 Subject: [PATCH] Fix indentation for Trac ticket description changes. Before this fix, the "to" was included in the markdown blocks. --- integrations/trac/zulip_trac.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/trac/zulip_trac.py b/integrations/trac/zulip_trac.py index 155d277..fb376af 100644 --- a/integrations/trac/zulip_trac.py +++ b/integrations/trac/zulip_trac.py @@ -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) == "":