summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorville <ville@localhost>2009-10-04 20:26:55 +0000
committerville <ville@localhost>2009-10-04 20:26:55 +0000
commit46c5e844611077804514036781358f03ec56bed8 (patch)
tree457aa4f3ad49162f8d83693bb13b4398216df1bc
parent282b19f8d5ec162f1dabea361049556e4e61b655 (diff)
downloadmarkup-validator-46c5e844611077804514036781358f03ec56bed8.zip
markup-validator-46c5e844611077804514036781358f03ec56bed8.tar.gz
markup-validator-46c5e844611077804514036781358f03ec56bed8.tar.bz2
Fix info message handling in JSON output.
-rw-r--r--share/templates/en_US/json_output.tmpl5
1 files changed, 2 insertions, 3 deletions
diff --git a/share/templates/en_US/json_output.tmpl b/share/templates/en_US/json_output.tmpl
index 1bafd7d..55221fe 100644
--- a/share/templates/en_US/json_output.tmpl
+++ b/share/templates/en_US/json_output.tmpl
@@ -10,9 +10,8 @@ X-W3C-Validator-Warnings: <TMPL_VAR NAME="valid_warnings_num"></TMPL_IF>
"messages": [
<TMPL_LOOP NAME="file_errors">
{
- <TMPL_IF NAME="err_type_err">"type": "error",</TMPL_IF>
- <TMPL_IF NAME="err_type_warn">"type": "info",
- "subtype": "warning"</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>,
"lastLine": "<TMPL_VAR NAME="line">",
"lastColumn": <TMPL_VAR NAME="char">,
"message": <TMPL_VAR NAME="msg">,