validator/httpd/cgi-bin check,1.305.2.131,1.305.2.132

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv952

Modified Files:
      Tag: validator-0_6_0-branch
	check 
Log Message:
Always print the explanation for the first occurance of an error; but only
add the JS hooks to insert it for all errors if ;verbose=1.


Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.305.2.131
retrieving revision 1.305.2.132
diff -u -d -r1.305.2.131 -r1.305.2.132
--- check	18 May 2004 00:32:32 -0000	1.305.2.131
+++ check	18 May 2004 00:38:13 -0000	1.305.2.132
@@ -1916,9 +1916,9 @@
       print qq{<span class="msg">$msg</span></p>};
       print qq(<p><code class="input">$line</code></p>);
 
-      if ($err->{num} and $File->{Opt}->{Verbose}) {
+      if ($err->{num}) {
         my(undef, $num) = split /\./, $err->{num};
-        if (exists $Msgs{$num}) {
+        if (exists $Msgs{$num} and $File->{Opt}->{Verbose}) {
           print qq(\n    <div class="hidden mid-$num"></div>\n);
         } else {
           $Msgs{$num} = 1;

Received on Monday, 17 May 2004 20:40:07 UTC