Hi, I'm loading a YAML document containing a simple array of strings generated by a server running on ruby.
The problem is that one of the items of the array contains some new line chars that genera an empty line and js-yaml throws JS-YAML: deficient indentation at line 3, column 1.
I can't understand if this is allowed by YAML (and thus a bug on js-yaml) or not (and thus a bug on the ruby implementation). Ruby code is able to re-load the document.
YAML Document
- simple
- ! ' test
case'
- ends here
Expected result (if loaded with ruby version):
[
"simple",
" test\ncase",
"ends here"
]
Hi, I'm loading a YAML document containing a simple array of strings generated by a server running on ruby.
The problem is that one of the items of the array contains some new line chars that genera an empty line and js-yaml throws
JS-YAML: deficient indentation at line 3, column 1.I can't understand if this is allowed by YAML (and thus a bug on js-yaml) or not (and thus a bug on the ruby implementation). Ruby code is able to re-load the document.
YAML Document
Expected result (if loaded with ruby version):