Bug 880282: Replace |FILTER no_break| by |class="nowrap"| to prevent dashes (U+002D) from being replaced by non-breaking hyphens/dashes (U+2011)
r=dkl a=justdave git-svn-id: svn://10.0.0.236/trunk@265860 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -806,14 +806,6 @@ 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 is similar to url_quote but used a \ instead of a %
|
||||
|
||||
Reference in New Issue
Block a user