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

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