X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fdevel%2Fxhtml.classes.pl;h=2b66b6e6d1a70a5fc6dad0bc25e7ba73c180c219;hb=7a5e65595c29071edb27c6378cce2f3224ab8b56;hp=f0524efa1fcba76ccb2f5a6053d26726be6aa4c4;hpb=8ac008e982fd257170c754a137455c6800c6419d;p=platal.git diff --git a/bin/devel/xhtml.classes.pl b/bin/devel/xhtml.classes.pl index f0524ef..2b66b6e 100755 --- a/bin/devel/xhtml.classes.pl +++ b/bin/devel/xhtml.classes.pl @@ -91,7 +91,7 @@ sub parse_tag($$) { if($tag =~ / (checked|disabled|multiple|readonly)( |$)/); print STDERR "${red}XHTML error: ${yel}attribut $1 ${blu}($file)${gra}\n" if($tag =~ / (align|width|border|color|valign)=/); - + # récupération des classes utilisées ... if($tag =~ /^(\w+).* class=('{[^}]*}'|"{[^}]*}"|'[^{}']*'|"[^{}"]*")/) { my $t = lc($1); @@ -102,7 +102,7 @@ sub parse_tag($$) { foreach my $cl (@cycle) { &class_add($file,$t,$cl) if($cl); } - } else { + } else { &class_add($file,$t,$c); } }