X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fdevel%2Fxhtml.classes.pl;h=23086b3049e9730f1218a80996ce2004c8f1b252;hb=6d8afb8585e20d64e86043111c240d5e15d8acaf;hp=5e2f64240e345db9d9272da90e0a1504d1357c6d;hpb=0337d704b62718d7c77106c0e4c4e26fb02beacf;p=platal.git diff --git a/bin/devel/xhtml.classes.pl b/bin/devel/xhtml.classes.pl index 5e2f642..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-2004 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); } }