summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-01-19 03:29:25 +0100
committertravis%sedsystems.ca <>2005-01-19 03:29:25 +0100
commit61a49f228204e2991aea7970c44efdd433f8c71b (patch)
tree02f413c6b6600b62231883fa4b5baf121c5d96ac /Bugzilla
parent00aa5409017d6e0f6607e09502c8d0d470077473 (diff)
downloadbugzilla-61a49f228204e2991aea7970c44efdd433f8c71b.tar.gz
bugzilla-61a49f228204e2991aea7970c44efdd433f8c71b.tar.xz
Bug 245282 : Flags should use nonbreaking hyphens or nowrap or somehow prevent hyphens from breaking flag names
Patch by LpSolit@gmail.com r=wurblzap a=myk
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Template.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index cddd33ba4..cb034478d 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -249,6 +249,14 @@ sub create {
return $var;
},
+ # Prevents line break on hyphens and whitespaces.
+ no_break => sub {
+ my ($var) = @_;
+ $var =~ s/ /\&nbsp;/g;
+ $var =~ s/-/\&#8209;/g;
+ return $var;
+ },
+
xml => \&Bugzilla::Util::xml_quote ,
# This filter escapes characters in a variable or value string for