- From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
- Date: Sun, 04 Oct 2009 20:34:22 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/share/templates/en_US In directory hutz:/tmp/cvs-serv23662 Modified Files: json_output.tmpl Log Message: Fix JSON syntax when some info is missing. Index: json_output.tmpl =================================================================== RCS file: /sources/public/validator/share/templates/en_US/json_output.tmpl,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- json_output.tmpl 4 Oct 2009 20:29:46 -0000 1.6 +++ json_output.tmpl 4 Oct 2009 20:34:20 -0000 1.7 @@ -10,13 +10,13 @@ "messages": [ <TMPL_LOOP NAME="file_errors"> { - "type": <TMPL_IF NAME="err_type_err">"error"<TMPL_ELSE>"info"<TMPL_IF NAME="err_type_warn">, - "subtype": "warning"</TMPL_IF></TMPL_IF>, "lastLine": <TMPL_VAR NAME="line">, - "lastColumn": <TMPL_VAR NAME="char">, + <TMPL_IF NAME="char">"lastColumn": <TMPL_VAR NAME="char">,</TMPL_IF> "message": <TMPL_VAR NAME="msg">, - "messageid": "<TMPL_VAR NAME="num">", - "explanation": <TMPL_VAR NAME="expl"> + <TMPL_IF NAME="num">"messageid": "<TMPL_VAR NAME="num">",</TMPL_IF> + <TMPL_IF NAME="expl">"explanation": <TMPL_VAR NAME="expl">,</TMPL_IF> + "type": <TMPL_IF NAME="err_type_err">"error"<TMPL_ELSE>"info"<TMPL_IF NAME="err_type_warn">, + "subtype": "warning"</TMPL_IF></TMPL_IF> }<TMPL_UNLESS NAME="__last__">,</TMPL_UNLESS> </TMPL_LOOP> ],
Received on Sunday, 4 October 2009 20:34:26 UTC