Commit 82c72145 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 470057: Collapse and wrap text messages and text errors

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent 8daa29c6
......@@ -698,6 +698,10 @@ sub create {
$var =~ s/\&gt;/>/g;
$var =~ s/\&quot;/\"/g;
$var =~ s/\&amp;/\&/g;
# Now remove extra whitespace, and wrap it to 72 characters.
my $collapse_filter = $Template::Filters::FILTERS->{collapse};
$var = $collapse_filter->($var);
$var = wrap_comment($var, 72);
return $var;
},
......
......@@ -310,8 +310,13 @@
[% END %]
[% END %]
[% san_message FILTER html %]
[% USE Bugzilla %]
[% IF Bugzilla.usage_mode == constants.USAGE_MODE_CMDLINE %]
[% san_message FILTER none %]
[% ELSE %]
[%# Avoid the txt filter in message.txt.tmpl. %]
[% san_message FILTER html %]
[% END %]
[% BLOCK bug_list %]
[% FOREACH bug_id = badbugs %]
......
......@@ -33,4 +33,4 @@ Some errors have been found.
No errors have been found.
[% END %]
[% output FILTER txt %]
[% output %]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment