validator/httpd/cgi-bin check,1.518,1.519

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

Modified Files:
	check 
Log Message:
 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


Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.518
retrieving revision 1.519
diff -u -d -r1.518 -r1.519
--- check	7 May 2007 19:17:58 -0000	1.518
+++ check	17 May 2007 02:38:13 -0000	1.519
@@ -1616,10 +1616,13 @@
       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;
 }
 

Received on Thursday, 17 May 2007 02:38:18 UTC