Loading of block sequence with tag (standard or application) and less than 3 spaces (at the line begin) fails with exception: "end of sequence not found".
Such YAML is declared valid with number of online validators.
More details and examples
All following examples are successfully loaded
not block sequence
key: !t |
multiple
words
no tag
key:
- |
multiple
words
more than 2 spaces (3)
key:
- !!str |
multiple
words
but the following fail (1 or 2 spaces before "multiple" and "words"):
application tag
key:
- !t |
multiple
words
standard tag
key:
- !!str |
multiple
words
Possible solution
The change in Scanner::ScanTag:
remove InsertPotentialSimpleKey(); call
seems to solve this problem, but breaks some of existing tests.
Loading of block sequence with tag (standard or application) and less than 3 spaces (at the line begin) fails with exception: "end of sequence not found". Such YAML is declared valid with number of online validators.
More details and examples
All following examples are successfully loaded
not block sequence
no tag
more than 2 spaces (3)
but the following fail (1 or 2 spaces before "multiple" and "words"):
application tag
standard tag
Possible solution
The change in
Scanner::ScanTag
:InsertPotentialSimpleKey();
callseems to solve this problem, but breaks some of existing tests.