[Rt-commit] r9602 - in rt/branches/3.7-EXPERIMENTAL: html/Widgets

ruz at bestpractical.com ruz at bestpractical.com
Tue Nov 6 07:12:06 EST 2007


Author: ruz
Date: Tue Nov  6 07:12:04 2007
New Revision: 9602

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/html/Widgets/TitleBoxStart

Log:
 r9518 at cubic-pc (orig r9517):  ruz | 2007-10-31 16:30:59 +0300
 * id of an element should be without spaces, thanks to Jason Long.


Modified: rt/branches/3.7-EXPERIMENTAL/html/Widgets/TitleBoxStart
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Widgets/TitleBoxStart	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Widgets/TitleBoxStart	Tue Nov  6 07:12:04 2007
@@ -78,7 +78,7 @@
 my $tid  = "TitleBox--$page--" .
             join '--', ($class, $bodyclass, $title, $id);
 
-$tid =~ s{/}{_}g;
+$tid =~ s{[/\s]+}{_}g;
 
 my $i = 0;
 $i++ while $m->notes("$tid-$i");


More information about the Rt-commit mailing list