X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fdevel%2Fxhtml.classes.pl;h=4d48a1bc6f998d6f021072a20c1a984fecc1239e;hb=728b73cc1ba81ac5a2611ca804ac7feb0317d459;hp=86c56a053f445a78ba03daff9780276df3a62672;hpb=50a40a33a496131e817df875607ea5542d096a64;p=platal.git diff --git a/bin/devel/xhtml.classes.pl b/bin/devel/xhtml.classes.pl index 86c56a0..4d48a1b 100755 --- a/bin/devel/xhtml.classes.pl +++ b/bin/devel/xhtml.classes.pl @@ -1,6 +1,6 @@ #! /usr/bin/perl -w #*************************************************************************** -#* Copyright (C) 2003-2006 Polytechnique.org * +#* Copyright (C) 2003-2014 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); } }