From 61a49f228204e2991aea7970c44efdd433f8c71b Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Wed, 19 Jan 2005 02:29:25 +0000 Subject: 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 --- Bugzilla/Template.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Bugzilla/Template.pm') 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/ /\ /g; + $var =~ s/-/\‑/g; + return $var; + }, + xml => \&Bugzilla::Util::xml_quote , # This filter escapes characters in a variable or value string for -- cgit v1.2.3-24-g4f1b