]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 880282: Replace |FILTER no_break| by |class="nowrap"| to prevent dashes (U+002D...
authorFrédéric Buclin <LpSolit@gmail.com>
Wed, 11 Mar 2015 18:02:13 +0000 (19:02 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 11 Mar 2015 18:02:13 +0000 (19:02 +0100)
r=dkl a=justdave

Bugzilla/Template.pm
t/004template.t
template/en/default/admin/flag-type/list.html.tmpl
template/en/default/attachment/list.html.tmpl
template/en/default/bug/show-multiple.html.tmpl
template/en/default/flag/list.html.tmpl
template/en/default/global/choose-product.html.tmpl
template/en/default/global/useful-links.html.tmpl

index 3f3d5f399374065499b13bc5fddf11df63a6b859..1b6b48205bf12e8626b39e5bdf7feba91a43ea05 100644 (file)
@@ -806,14 +806,6 @@ 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 is similar to url_quote but used a \ instead of a %
index 6e366c0444f63708371b1ba544a035c723679592..ce45cfec1b3005719caaee0f3a49ea98f07378e1 100644 (file)
@@ -71,7 +71,6 @@ foreach my $include_path (@include_paths) {
         FILTERS =>
         {
             html_linebreak => sub { return $_; },
-            no_break => sub { return $_; } ,
             js        => sub { return $_ } ,
             base64   => sub { return $_ } ,
             url_quote => sub { return $_ } ,
index f4836ca7d1775c3f5d6778dc4e698b2d0122b55d..b91b4919960dec065782dd86078f3f4120f609ab 100644 (file)
     [% FOREACH type = types %]
 
       <tr class="[% IF type.is_active %]active[% ELSE %]inactive[% END %]">
-        <td><a href="editflagtypes.cgi?action=edit&amp;id=[% type.id %]">[% type.name FILTER html FILTER no_break %]</a></td>
+        <td class="nowrap">
+          <a href="editflagtypes.cgi?action=edit&amp;id=[% type.id %]">[% type.name FILTER html %]</a>
+        </td>
         <td>[% type.description FILTER html %]</td>
         <td class="right">[% type.sortkey FILTER html %]</td>
         <td>
index 2e160eda7c6f1ad997dc05dd9570fadc1eba6f48..97fd2dc9519969a6dca6187fb2294c84daf933b9 100644 (file)
@@ -122,7 +122,7 @@ function toggle_display(link) {
                 [% ELSE %]
                   [% flag.setter.nick FILTER html %]:
                 [% END %]
-                [%+ flag.type.name FILTER html FILTER no_break %][% flag.status %]
+                [%+ flag.type.name FILTER html %][% flag.status %]
                 [%+ IF flag.status == "?" && flag.requestee %]
                   [% IF user.id %]
                     (<span title="[% flag.requestee.identity FILTER html %]">[% flag.requestee.nick FILTER html %]</span>)
index 99dd53215b159c90dc9a932725b1b349d442782e..8babdf04ac5b8256f87b9e6ea4c63521b6b352f4 100644 (file)
                     [% ELSE %]
                       [% FOREACH flag = attachment.flags %]
                         [% flag.setter.nick FILTER html %]:
-                        [%+ flag.type.name FILTER html FILTER no_break %][% flag.status %]
+                        <span class="nowrap">[%+ flag.type.name FILTER html %][% flag.status %]</span>
                         [% IF flag.status == "?" && flag.requestee %]
                           ([% flag.requestee.nick FILTER html %])
                         [% END %][% ", " IF not loop.last() %]
           [% FOREACH type = bug.flag_types %]
             [% FOREACH flag = type.flags %]
                 [% flag.setter.nick FILTER html %]:
-                [%+ flag.type.name FILTER html FILTER no_break %][% flag.status %]
+                <span class="nowrap">[%+ flag.type.name FILTER html %][% flag.status %]</span>
                 [%+ IF flag.status == "?" && flag.requestee %]
                   ([% flag.requestee.nick FILTER html %])
                 [% END %]<br>
index 7547e5687c5c1142a5aad4e0463da880ccad91b5..047fd44259a8dfd81c6d8b5c2b0fb88de1b2271b 100644 (file)
@@ -80,7 +80,7 @@
       [% ELSE %]
         [% flag.setter.nick FILTER html %]:
       [% END %]
-      [%+ type.name FILTER html FILTER no_break %][% flag.status %]
+      <span class="nowrap">[%+ type.name FILTER html %][% flag.status %]</span>
       [% IF flag.requestee %]
         [% IF flag.requestee.name %]
           (<span title="[% flag.requestee.name FILTER html %]">[% flag.requestee.nick FILTER html %]</span>)
           [% addl_text FILTER html %]
         [% END %]
       </td>
-      <td>
+      <td class="nowrap">
         <label title="[% type.description FILTER html %]" for="[% fid FILTER html %]">
-          [%- type.name FILTER html FILTER no_break -%]</label>
+          [%- type.name FILTER html %]</label>
       </td>
       <td>
         <input type="hidden" id="[% fid FILTER html %]_dirty">
index 7349d1ced1fab719a0a385d670855efe2c4b04f3..a1582532acee005dfbd8f3971ab4604a62d7b733 100644 (file)
 
   [% FOREACH p = c.products %]
     <tr>
-      <th class="right">
+      <th class="right nowrap">
         <a href="[% target %]?product=[% p.name FILTER uri -%]
               [%- IF previous_params %]&amp;[% previous_params FILTER none %][% END -%]">
-        [% p.name FILTER html FILTER no_break %]</a>:&nbsp;
+        [% p.name FILTER html %]</a>:
       </th>
 
       <td>[% p.description FILTER html_light %]</td>
index 97c7f709c7ebbc45cc8847c2a11af228ef59f57b..5c5bfc3169175c6d0bc4f6f6f231c2566598964e 100644 (file)
@@ -46,7 +46,7 @@
             <a href="buglist.cgi?cmdtype=dorem&amp;remaction=run&amp;namedcmd=
                      [%- q.name FILTER uri %]&amp;sharer_id=[% q.user.id FILTER uri %]"
                class="shared" title="Shared by [% q.user.identity FILTER html %]">
-              [%- q.name FILTER html FILTER no_break %]</a>
+              [%- q.name FILTER html %]</a>
           </li>
         [% END %]
       </ul>