W3C home > Mailing lists > Public > www-validator-cvs@w3.org > May 2004

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

From: Terje Bless <link@hutz.w3.org>
Date: Tue, 18 May 2004 00:38:15 +0000
To: www-validator-cvs@w3.org
Message-Id: <20040518003816.1CE44481A@hutz.w3.org>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:06 UTC