summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-01-20 21:22:07 +0100
committermkanat%bugzilla.org <>2009-01-20 21:22:07 +0100
commit82c721450888328c7183bc2e4c4e39934194b949 (patch)
tree8a4472057eb520025e0d79029bd7db72d6b7a13b /Bugzilla
parent8daa29c602f8409beab723c955405a501ab649d3 (diff)
downloadbugzilla-82c721450888328c7183bc2e4c4e39934194b949.tar.gz
bugzilla-82c721450888328c7183bc2e4c4e39934194b949.tar.xz
Bug 470057: Collapse and wrap text messages and text errors
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Template.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 3141c8a4c..e5fecbe0d 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -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;
},