From: Dylan William Hardison Date: Tue, 15 Jan 2019 20:36:31 +0000 (-0500) Subject: Bug 1520221 - Avoid wrapping markdown comments X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ee7425d0e9d395ec420ab1115472926d034a1e9;p=thirdparty%2Fbugzilla.git Bug 1520221 - Avoid wrapping markdown comments --- diff --git a/extensions/BMO/template/en/default/email/bugmail.html.tmpl b/extensions/BMO/template/en/default/email/bugmail.html.tmpl index d6c2ede85..bf6db2d7b 100644 --- a/extensions/BMO/template/en/default/email/bugmail.html.tmpl +++ b/extensions/BMO/template/en/default/email/bugmail.html.tmpl @@ -48,11 +48,13 @@ [% END %] [% IF comment.is_markdown AND Param('use_markdown') %] + [% should_wrap = 0 %] [% comment_tag = 'div' %] [% ELSE %] + [% should_wrap = 1 %] [% comment_tag = 'pre' %] [% END %] - <[% comment_tag FILTER none %] class="comment" [% IF comment_tag == 'pre' %] style="font-size: initial" [% END %]>[% comment.body_full({ wrap => 1 }) FILTER renderMarkdown(bug, comment) %] + <[% comment_tag FILTER none %] class="comment" [% IF comment_tag == 'pre' %] style="font-size: initial" [% END %]>[% comment.body_full({ wrap => should_wrap }) FILTER renderMarkdown(bug, comment) %] [% END %]