Skip to content

round trip error using flow level and string with newline #235

@shaunc

Description

@shaunc

The following fails:

yaml.safeLoad(yaml.safeDump({name: '\n'}, {flowLevel: 0}))

producing:

YAMLException: missed comma between flow collection entries at line 1, column 8:
    {name: |
           ^

The actual output is:

> console.log(y.safeDump({name: '\n'}, {flowLevel: 0}))
{name: |
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions