From c8e7afa0852a1904fd727dca8bf452eb65ada67f Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Fri, 6 Dec 2019 10:53:00 +0000 Subject: [PATCH] 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 --- contrib/commandref_join.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/commandref_join.pl b/contrib/commandref_join.pl index 6aaf0511e..9af46b98e 100755 --- a/contrib/commandref_join.pl +++ b/contrib/commandref_join.pl @@ -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);