diff options
author | link <link@localhost> | 2002-11-14 21:10:21 +0000 |
---|---|---|
committer | link <link@localhost> | 2002-11-14 21:10:21 +0000 |
commit | f5e4180ceff27cf05fd425737ad39bd2042e0533 (patch) | |
tree | 9d3679d94891c68fde3559f8fcb70ccb136b9f0b | |
parent | a678c7aa009d0531fdccee6122b5debfee27b230 (diff) | |
download | markup-validator-f5e4180ceff27cf05fd425737ad39bd2042e0533.zip markup-validator-f5e4180ceff27cf05fd425737ad39bd2042e0533.tar.gz markup-validator-f5e4180ceff27cf05fd425737ad39bd2042e0533.tar.bz2 |
Add line/column number to error-cum-warnings.
-rwxr-xr-x | httpd/cgi-bin/check | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index 53c3180..16efe57 100755 --- a/httpd/cgi-bin/check +++ b/httpd/cgi-bin/check @@ -9,7 +9,7 @@ # This source code is available under the license at: # http://www.w3.org/Consortium/Legal/copyright-software # -# $Id: check,v 1.294 2002-11-14 20:56:56 link Exp $ +# $Id: check,v 1.295 2002-11-14 21:10:21 link Exp $ # # Disable buffering on STDOUT! @@ -95,7 +95,7 @@ BEGIN { # # Strings - $VERSION = q$Revision: 1.294 $; + $VERSION = q$Revision: 1.295 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; @@ -157,7 +157,7 @@ $File->{'Header'} = &prepSSI({ }); $File->{'Footer'} = &prepSSI({ File => $CFG->{'Footer'}, - Date => q$Date: 2002-11-14 20:56:56 $, + Date => q$Date: 2002-11-14 21:10:21 $, }); # @@ -1349,7 +1349,7 @@ sub parse_errors ($$) { if ($err->{type} eq 'E' or $err->{type} eq 'X' or $err->{type} eq 'Q') { $err->{msg} = $errors[5]; } elsif ($err->{type} eq 'W') { - &add_warning($File, $errors[5]); + &add_warning($File, "Line $err->{line}, column $err->{char}: $errors[5]"); } else { $err->{type} = 'I'; $err->{msg} = $errors[4]; |