summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-11-01 21:12:26 +0100
committermkanat%bugzilla.org <>2009-11-01 21:12:26 +0100
commit81ee29e716aa161a9a53301239ae19a39baec482 (patch)
tree1410162afc43162ad585e61d0fe826799a62da9d /template/en/default/bug
parent608b923a384298be20caae4ed22c0364db0f67f6 (diff)
downloadbugzilla-81ee29e716aa161a9a53301239ae19a39baec482.tar.gz
bugzilla-81ee29e716aa161a9a53301239ae19a39baec482.tar.xz
Bug 524891: Make leading whitespace not be trimmed from comments on display.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/format_comment.txt.tmpl21
1 files changed, 10 insertions, 11 deletions
diff --git a/template/en/default/bug/format_comment.txt.tmpl b/template/en/default/bug/format_comment.txt.tmpl
index e399d8218..e0881e4e7 100644
--- a/template/en/default/bug/format_comment.txt.tmpl
+++ b/template/en/default/bug/format_comment.txt.tmpl
@@ -17,6 +17,11 @@
# Contributor(s): Marc Schumann <wurblzap@gmail.com>
#%]
+[%# NOTE: Everywhere you use this template, you must call
+ # "FILTER remove('^X')" on the result. This is unfortunately the only way
+ # to preserve leading whitespace in comments.
+ #%]
+
[%# INTERFACE:
# comment: A hash containing comment information.
# count: The comment number (on the bug it belongs to)
@@ -33,14 +38,8 @@
[% PROCESS 'global/field-descs.none.tmpl' %]
-[% IF comment.already_wrapped %]
- [% wrapped_comment = comment.body %]
-[% ELSE %]
- [% wrapped_comment = comment.body FILTER wrap_comment %]
-[% END %]
-
-[%- IF comment.type == constants.CMT_DUPE_OF -%]
-[% wrapped_comment %]
+[% IF comment.type == constants.CMT_DUPE_OF %]
+X[% comment.body %]
*** This [% terms.bug %] has been marked as a duplicate of [% terms.bug %] [%+ comment.extra_data %] ***
[% ELSIF comment.type == constants.CMT_HAS_DUPE %]
@@ -48,7 +47,7 @@
[% ELSIF comment.type == constants.CMT_POPULAR_VOTES %]
*** This [% terms.bug %] has been confirmed by popular vote. ***
[% ELSIF comment.type == constants.CMT_MOVED_TO %]
-[% wrapped_comment %]
+X[% comment.body %]
[%+ terms.Bug %] moved to [% Param("move-to-url") %].
If the move succeeded, [% comment.extra_data %] will receive a mail containing
@@ -56,6 +55,6 @@ the number of the new [% terms.bug %] in the other database.
If all went well, please mark this [% terms.bug %]
[%+ display_value("bug_status", 'VERIFIED') %], and paste in a link to the new [% terms.bug %].
Otherwise, reopen this [% terms.bug %].
-[%- ELSE -%]
-[%- wrapped_comment %]
+[% ELSE %]
+X[% comment.body %]
[% END %]