[Rt-commit] r9517 - rt/branches/3.7-RTIR-RELENG/html/Widgets

ruz at bestpractical.com ruz at bestpractical.com
Wed Oct 31 09:30:59 EDT 2007


Author: ruz
Date: Wed Oct 31 09:30:59 2007
New Revision: 9517

Modified:
   rt/branches/3.7-RTIR-RELENG/html/Widgets/TitleBoxStart

Log:
* id of an element should be without spaces, thanks to Jason Long.

Modified: rt/branches/3.7-RTIR-RELENG/html/Widgets/TitleBoxStart
==============================================================================
--- rt/branches/3.7-RTIR-RELENG/html/Widgets/TitleBoxStart	(original)
+++ rt/branches/3.7-RTIR-RELENG/html/Widgets/TitleBoxStart	Wed Oct 31 09:30:59 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