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:
bzrmirror%bugzilla.org
2015-03-11 18:16:45 +00:00
parent 0bb19b0db2
commit 6ca7ee8774
10 changed files with 14 additions and 21 deletions

View File

@@ -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 %