W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2010

validator/share/templates/en_US json_output.tmpl,1.7,1.8

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 03 Feb 2010 19:21:33 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Nckn7-00012s-KL@lionel-hutz.w3.org>
Update of /sources/public/validator/share/templates/en_US
In directory hutz:/tmp/cvs-serv3404/share/templates/en_US

Modified Files:
	json_output.tmpl 
Log Message:
Fix JSON output syntax for messages without a line number (Yaroslav Samchuk).


Index: json_output.tmpl
===================================================================
RCS file: /sources/public/validator/share/templates/en_US/json_output.tmpl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- json_output.tmpl	4 Oct 2009 20:34:20 -0000	1.7
+++ json_output.tmpl	3 Feb 2010 19:21:31 -0000	1.8
@@ -10,7 +10,7 @@
     "messages": [
         <TMPL_LOOP NAME="file_errors">
           {
-              "lastLine": <TMPL_VAR NAME="line">,
+              <TMPL_IF NAME="line">"lastLine": <TMPL_VAR NAME="line">,</TMPL_IF>
               <TMPL_IF NAME="char">"lastColumn": <TMPL_VAR NAME="char">,</TMPL_IF>
               "message": <TMPL_VAR NAME="msg">,
               <TMPL_IF NAME="num">"messageid": "<TMPL_VAR NAME="num">",</TMPL_IF>
Received on Wednesday, 3 February 2010 19:21:34 UTC

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