W3C home > Mailing lists > Public > www-validator-cvs@w3.org > April 2007

validator/httpd/cgi-bin check,1.500,1.501

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 18 Apr 2007 06:32:54 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1He3io-0002Vm-RG@lionel-hutz.w3.org>

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

Modified Files:
	check 
Log Message:
Since we have a number of different sources for errors (xml-wf, parsing, ...)
better make sure that they are sorted before output
(+test case) 



Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.500
retrieving revision 1.501
diff -u -d -r1.500 -r1.501
--- check	18 Apr 2007 06:27:20 -0000	1.500
+++ check	18 Apr 2007 06:32:52 -0000	1.501
@@ -1622,6 +1622,10 @@
       push @{$Errors}, $Errors_bytype{$err_num};
     }
   }
+  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 Wednesday, 18 April 2007 06:33:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:57 GMT