diff options
author | link <link@localhost> | 2002-10-23 21:57:09 +0000 |
---|---|---|
committer | link <link@localhost> | 2002-10-23 21:57:09 +0000 |
commit | 04f3f47a2443c4a1e727073694ab9975ff8cb232 (patch) | |
tree | 04305daa03e0b9bec7de2ff7350b40ae1cbecd64 | |
parent | 0bee1a1f7a4ad8a0f46c8b22a31aed6b58278f10 (diff) | |
download | markup-validator-04f3f47a2443c4a1e727073694ab9975ff8cb232.zip markup-validator-04f3f47a2443c4a1e727073694ab9975ff8cb232.tar.gz markup-validator-04f3f47a2443c4a1e727073694ab9975ff8cb232.tar.bz2 |
I have *no* idea what the original was supposed to be doing, but this
should output three offsets in the various reports:
1. Number of characters in this line.
2. Number of characters from start of file, including this line.
3. Offset of start of error, counting from start of file.
The should probably also be split up into separate values in the output,
but I'm not sure how that should be done yet.
-rwxr-xr-x | httpd/cgi-bin/check | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index ee7002a..4c38c36 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.254 2002-10-23 21:51:22 link Exp $ +# $Id: check,v 1.255 2002-10-23 21:57:09 link Exp $ # # Disable buffering on STDOUT! @@ -95,7 +95,7 @@ BEGIN { # # Strings - $VERSION = q$Revision: 1.254 $; + $VERSION = q$Revision: 1.255 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; @@ -156,7 +156,7 @@ $File->{'Header'} = &prepSSI({ }); $File->{'Footer'} = &prepSSI({ File => $CFG->{'Footer'}, - Date => q$Date: 2002-10-23 21:51:22 $, + Date => q$Date: 2002-10-23 21:57:09 $, }); # @@ -2286,7 +2286,7 @@ X-W3C-Validator-Errors: $errs my @offsets = ( $File->{Offsets}->[$err->{line} ]->[0], $File->{Offsets}->[$err->{line} - 1]->[1], - $File->{Offsets}->[$err->{line} - 1]->[1] + $err->{char} + $err->{line} + $File->{Offsets}->[$err->{line} - 1]->[1] + $err->{char} ); printf <<".EOF.", &ent($err->{msg}); <error><line>$err->{line}</line><column>$err->{char}</column><offset>@offsets</offset><msg>%s</msg></error> @@ -2358,7 +2358,7 @@ X-W3C-Validator-Errors: $errs my @offsets = ( $File->{Offsets}->[$err->{line} ]->[0], $File->{Offsets}->[$err->{line} - 1]->[1], - $File->{Offsets}->[$err->{line} - 1]->[1] + $err->{char} + $err->{line} + $File->{Offsets}->[$err->{line} - 1]->[1] + $err->{char} ); printf <<".EOF.", &ent($File->{URI}), &ent($err->{msg}); <asserts> @@ -2439,7 +2439,7 @@ X-W3C-Validator-Errors: $errs my @offsets = ( $File->{Offsets}->[$err->{line} ]->[0], $File->{Offsets}->[$err->{line} - 1]->[1], - $File->{Offsets}->[$err->{line} - 1]->[1] + $err->{char} + $err->{line} + $File->{Offsets}->[$err->{line} - 1]->[1] + $err->{char} ); print <<".EOF."; [ |