2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

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

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

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);