X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fdevel%2Fxhtml.classes.pl;h=23086b3049e9730f1218a80996ce2004c8f1b252;hb=d645ceb701b0e8aa1de2e5271bed35e56ef169f1;hp=f0524efa1fcba76ccb2f5a6053d26726be6aa4c4;hpb=5ddeb07cc787dd1dc3630a31f1528f5cc7c4d9b9;p=platal.git diff --git a/bin/devel/xhtml.classes.pl b/bin/devel/xhtml.classes.pl index f0524ef..23086b3 100755 --- a/bin/devel/xhtml.classes.pl +++ b/bin/devel/xhtml.classes.pl @@ -1,6 +1,6 @@ #! /usr/bin/perl -w #*************************************************************************** -#* Copyright (C) 2003-2007 Polytechnique.org * +#* Copyright (C) 2003-2011 Polytechnique.org * #* http://opensource.polytechnique.org/ * #* * #* This program is free software; you can redistribute it and/or modify * @@ -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); } }