summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorville <ville@localhost>2007-04-28 18:56:55 +0000
committerville <ville@localhost>2007-04-28 18:56:55 +0000
commit9ec92e7f105e610a5bbe79035c2979d3365f4726 (patch)
tree0e62f9a5570cd25056af5a99a41604c13b5efddd
parent29969a8f964bc11bce01c34ce699573ccbe3e75f (diff)
downloadmarkup-validator-9ec92e7f105e610a5bbe79035c2979d3365f4726.zip
markup-validator-9ec92e7f105e610a5bbe79035c2979d3365f4726.tar.gz
markup-validator-9ec92e7f105e610a5bbe79035c2979d3365f4726.tar.bz2
Don't treat any '^' as a column locator when parsing libxml errors.
-rwxr-xr-xhttpd/cgi-bin/check6
1 files changed, 3 insertions, 3 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index 85e9313..73b2930 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -14,7 +14,7 @@
# This source code is available under the license at:
# http://www.w3.org/Consortium/Legal/copyright-software
#
-# $Id: check,v 1.509 2007-04-28 09:33:54 ville Exp $
+# $Id: check,v 1.510 2007-04-28 18:56:55 ville Exp $
#
# Disable buffering on STDOUT!
@@ -180,7 +180,7 @@ Directory not readable (permission denied): @_r
#
# Strings
- $VERSION = q$Revision: 1.509 $;
+ $VERSION = q$Revision: 1.510 $;
$VERSION =~ s/Revision: ([\d\.]+) /$1/;
#
@@ -646,7 +646,7 @@ if (&is_xml($File)) {
$xmlwf_error_line =~ s/:(\d+):/$1/;
$xmlwf_error_msg =~ s/ parser error :/XML Parsing Error: /;
}
- if ($msg_line =~ /(.+)\^/){
+ elsif ($msg_line =~ /(\s+)\^/) {
$xmlwf_error_col = length($1);
}
if (defined($xmlwf_error_col) && $xmlwf_error_col == 79){