W3C home > Mailing lists > Public > www-validator-cvs@w3.org > June 2009

validator/share/templates/en_US invalid.tmpl,1.16,1.17 table.tmpl,1.43,1.44

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 23 Jun 2009 21:17:41 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MJDN7-0007JA-6N@lionel-hutz.w3.org>
Update of /sources/public/validator/share/templates/en_US
In directory hutz:/tmp/cvs-serv28078/share/templates/en_US

Modified Files:
	invalid.tmpl table.tmpl 
Log Message:
Avoid outputting "this should not happen" comment when the thing does not actually happen.

Index: invalid.tmpl
===================================================================
RCS file: /sources/public/validator/share/templates/en_US/invalid.tmpl,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- invalid.tmpl	18 Apr 2007 06:53:42 -0000	1.16
+++ invalid.tmpl	23 Jun 2009 21:17:39 -0000	1.17
@@ -10,8 +10,9 @@
 
 <h3 <TMPL_UNLESS NAME="VALID">class="invalid"</TMPL_UNLESS>
 >Validation Output:
-        <!-- this case where validation fails but no error is listed should never happen -->
-        <TMPL_IF NAME="number_of_errors_is_0">Invalid </TMPL_IF>
+        <TMPL_IF NAME="number_of_errors_is_0">
+        Invalid<!-- this case where validation fails but no error is listed should never happen -->
+        </TMPL_IF>
         <TMPL_IF NAME="number_of_errors_is_1">1 Error</TMPL_IF>
         <TMPL_IF NAME="number_of_errors_is_plural"><TMPL_VAR NAME="valid_errors_num" ESCAPE="HTML"> Errors</TMPL_IF>
         </h3>

Index: table.tmpl
===================================================================
RCS file: /sources/public/validator/share/templates/en_US/table.tmpl,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- table.tmpl	1 Jan 2009 21:12:24 -0000	1.43
+++ table.tmpl	23 Jun 2009 21:17:39 -0000	1.44
@@ -37,8 +37,8 @@
       </TMPL_IF>
     <TMPL_ELSE>
     <td colspan="2" class="invalid">
-      <TMPL_IF NAME="number_of_errors_is_1">1 Error</TMPL_IF><TMPL_IF NAME="number_of_errors_is_plural"><TMPL_VAR NAME="valid_errors_num" ESCAPE="HTML"> Errors</TMPL_IF><TMPL_IF Name="valid_warnings_num">, <TMPL_VAR NAME="valid_warnings_num"> warning(s)</TMPL_IF>
-     <!-- this case where validation fails but no error is listed should never happen -->   
+      <TMPL_IF NAME="number_of_errors_is_1">1 Error</TMPL_IF><TMPL_IF NAME="number_of_errors_is_plural"><TMPL_VAR NAME="valid_errors_num" ESCAPE="HTML"> Errors</TMPL_IF><TMPL_IF NAME="valid_warnings_num">, <TMPL_VAR NAME="valid_warnings_num"> warning(s)</TMPL_IF>
+      <TMPL_IF NAME="number_of_errors_is_0">Invalid<!-- this case where validation fails but no error is listed should never happen --></TMPL_IF>
     </TMPL_IF>
     </td>
     </tr>
Received on Tuesday, 23 June 2009 21:17:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:36 UTC