Skip to content

unable to load simple yaml generated with ruby #154

@paolochiodi

Description

@paolochiodi

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"
]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions