diff options
author | ot <ot@localhost> | 2007-05-17 02:38:13 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2007-05-17 02:38:13 +0000 |
commit | e18fe21bc4fa328bc89355829bc2d909b2214a48 (patch) | |
tree | 6a0f1962c21effe40e9a2fb87b539dddb40531db | |
parent | 475fcea01568ee105082e32a8ac65ee153885e8c (diff) | |
download | markup-validator-e18fe21bc4fa328bc89355829bc2d909b2214a48.zip markup-validator-e18fe21bc4fa328bc89355829bc2d909b2214a48.tar.gz markup-validator-e18fe21bc4fa328bc89355829bc2d909b2214a48.tar.bz2 |
we are not sorting errors by line, as it would break the position
of auxiliary messages such as "start tag was here". We'll have to live with
the fact that XML well-formedness errors are listed first, then validation errors
-rwxr-xr-x | httpd/cgi-bin/check | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index 90b1d60..73a9d59 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.518 2007-05-07 19:17:58 ot Exp $ +# $Id: check,v 1.519 2007-05-17 02:38:13 ot Exp $ # # Disable buffering on STDOUT! @@ -180,7 +180,7 @@ Directory not readable (permission denied): @_r # # Strings - $VERSION = q$Revision: 1.518 $; + $VERSION = q$Revision: 1.519 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; # @@ -1616,10 +1616,13 @@ sub report_errors ($) { push @{$Errors}, $Errors_bytype{$err_num}; } } - else { - # sort error by lines - @{$Errors} = sort {$a->{line} <=> $b->{line} } @{$Errors}; - } + # we are not sorting errors by line, as it would break the position + # of auxiliary messages such as "start tag was here". We'll have to live with + # the fact that XML well-formedness errors are listed first, then validation errors + #else { + # sort error by lines + # @{$Errors} = sort {$a->{line} <=> $b->{line} } @{$Errors}; + #} return $number_of_errors, $number_of_warnings, $number_of_info, $Errors; } |