validator/httpd/cgi-bin check,1.305.2.135,1.305.2.136

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

Modified Files:
      Tag: validator-0_6_0-branch
	check 
Log Message:
Don't repeat the explanations unless we're in Verbose mode.


Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.305.2.135
retrieving revision 1.305.2.136
diff -u -d -r1.305.2.135 -r1.305.2.136
--- check	18 May 2004 03:41:19 -0000	1.305.2.135
+++ check	20 May 2004 11:02:51 -0000	1.305.2.136
@@ -1923,8 +1923,10 @@
 
       if ($err->{num}) {
         my(undef, $num) = split /\./, $err->{num};
-        if (exists $Msgs{$num} and $File->{Opt}->{Verbose}) {
-          print qq(\n    <div class="hidden mid-$num"></div>\n);
+        if (exists $Msgs{$num}) { # We've already seen this message...
+          if ($File->{Opt}->{Verbose}) { # ...so only repeat it in Verbose mode.
+            print qq(\n    <div class="hidden mid-$num"></div>\n);
+          }
         } else {
           $Msgs{$num} = 1;
           print "\n    $RSRC->{msg}->{$num}->{verbose}\n"

Received on Thursday, 20 May 2004 07:05:14 UTC