Skip to content

Potentially incorrect empty line detection in Parse::_filter_block_scalar #337

@NaN-git

Description

@NaN-git

In this method if chomp != CHOMP_KEEP is true, then s.trim(" \n\r\t") is executed.
Obviously this statement shall filter empty lines, but if I read the YAML 1.2 standard correctly, then an empty line in block scalars cannot contain any \t-character.

That seems to be the reason, why rapidyaml fails this test case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions