summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug/comments.html.tmpl
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-02-10 02:30:17 +0100
committertravis%sedsystems.ca <>2005-02-10 02:30:17 +0100
commit6db4590f9bc598179bbed35b66a3e583a04984c0 (patch)
tree59be5eafc7bb24cc931fcdf3b960c7d7830db935 /template/en/default/bug/comments.html.tmpl
parent6a20f783538986e8caf60b31a659248dd552f63f (diff)
downloadbugzilla-6db4590f9bc598179bbed35b66a3e583a04984c0.tar.gz
bugzilla-6db4590f9bc598179bbed35b66a3e583a04984c0.tar.xz
Bug 11901 : Change Bugzilla comments line-wrapping policy
Patch by Max Kanat-Alexander <mkanat@kerio.com> r=gerv,justdave a=justdave
Diffstat (limited to 'template/en/default/bug/comments.html.tmpl')
-rw-r--r--template/en/default/bug/comments.html.tmpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl
index 2f82b46dc..bf41200b7 100644
--- a/template/en/default/bug/comments.html.tmpl
+++ b/template/en/default/bug/comments.html.tmpl
@@ -17,6 +17,7 @@
# Rights Reserved.
#
# Contributor(s): Gervase Markham <gerv@gerv.net>
+ # Maxwell Kanat-Alexander <mkanat@kerio.com>
#%]
[% DEFAULT start_at = 0 mode = "show" %]
@@ -82,8 +83,13 @@
[%# Don't indent the <pre> block, since then the spaces are displayed in the
# generated HTML
#%]
+[% IF comment.already_wrapped %]
+ [% wrapped_comment = comment.body %]
+[% ELSE %]
+ [% wrapped_comment = comment.body FILTER wrap_comment %]
+[% END %]
<pre[% ' id="comment_text_' _ count _ '"' IF mode == "edit" %]>
- [%- comment.body FILTER quoteUrls -%]
+ [%- wrapped_comment FILTER quoteUrls -%]
</pre>
</div>
[% END %]