validator/httpd/cgi-bin check,1.510,1.511

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

Modified Files:
	check 
Log Message:
Better diagnostics about OpenSP reporting error columns > line length in case
it's still a problem.


Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.510
retrieving revision 1.511
diff -u -d -r1.510 -r1.511
--- check	28 Apr 2007 18:56:55 -0000	1.510
+++ check	28 Apr 2007 19:21:35 -0000	1.511
@@ -2333,9 +2333,13 @@
   # ...
   $File->{'Is Valid'} = FALSE if $err->{type} eq 'E';
 
-  # Workaround for onsgmls 1.5 sometimes reporting errors beyond EOL.
-  # (How true is that? Test cases please.)
+  # Workaround for onsgmls as of 1.5 sometimes allegedly reporting errors
+  # beyond EOL.  If you see this warning in your web server logs, please
+  # let the validator developers know, see http://validator.w3.org/feedback.html
   if ((my $l = length($File->{Content}->[$err->{line}-1])) < $err->{char}) {
+    warn("Warning: reported error column larger than line length " .
+         "($err->{char} > $l) in $File->{URI} line $err->{line}, " .
+         "OpenSP bug? Resetting to line length.");
     $err->{char} = $l;
   }
 

Received on Saturday, 28 April 2007 22:57:25 UTC