From: Israel Madueme Date: Tue, 18 Dec 2018 03:31:39 +0000 (-0500) Subject: Bug 1514765 - fix new bug comment preview X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6618b0af30f8356ba67b76d284e15490cf95c989;p=thirdparty%2Fbugzilla.git Bug 1514765 - fix new bug comment preview We forgot to correctly switch between a div and pre tag on the new bug comment preview, based on whether markdown is enabled or not. This was causing plaintext comments to lose their formatting. --- diff --git a/template/en/default/bug/comment.html.tmpl b/template/en/default/bug/comment.html.tmpl index 77c393366..ddcba4e82 100644 --- a/template/en/default/bug/comment.html.tmpl +++ b/template/en/default/bug/comment.html.tmpl @@ -37,7 +37,12 @@
Generating Preview...
-
+ [% IF comment.is_markdown AND Param('use_markdown') %] + [% comment_tag = 'div' %] + [% ELSE %] + [% comment_tag = 'pre' %] + [% END %] + <[% comment_tag FILTER none %] id="comment_preview_text" class="bz_comment_text">
[% END %]