diff options
author | ville <ville@localhost> | 2009-10-04 20:26:55 +0000 |
---|---|---|
committer | ville <ville@localhost> | 2009-10-04 20:26:55 +0000 |
commit | 46c5e844611077804514036781358f03ec56bed8 (patch) | |
tree | 457aa4f3ad49162f8d83693bb13b4398216df1bc | |
parent | 282b19f8d5ec162f1dabea361049556e4e61b655 (diff) | |
download | markup-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.tmpl | 5 |
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">, |