commandref_join.pl: noWarnings with "table with attributes" (Forum #105376)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20664 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-12-06 10:53:00 +00:00
parent 743e2bf017
commit c8e7afa085

View File

@ -181,7 +181,8 @@ generateModuleCommandref($$;$$)
if($l =~ m/<$tag ([^>]+)>/i) {
my $attr = $1;
print "*** $lang $mod line $line: $tag with attributes (apart ".
"from class) is not allowed\n" if($attr !~ m/class="[^"]*"/);
"from class) is not allowed\n"
if($attr !~ m/class="[^"]*"/ && !$noWarnings);
}
$tagcount{$tag} +=()= ($l =~ /<$tag( [^>]+)?>/gi);
$tagcount{$tag} -=()= ($l =~ /<\/$tag>/gi);