You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The YAML spec states that the final line break is part of a block scalar unless strip - is used as a chomping mode. The parser however treats the final line break as whitespace and assigns it to a different node.
The incorrectly parsed line breaks are marked with <-----. They should be part of the BLOCK_SCALAR_TEXT instead.
I tried to fix it myself, but it turned out to be quite challenging. Parsing the line break as part of BLOCK_SCALAR_TEXT breaks the parent rules which expect the line break as a separator, e.g. the block_map parsing function.
The text was updated successfully, but these errors were encountered:
The YAML spec states that the final line break is part of a block scalar unless strip
-
is used as a chomping mode. The parser however treats the final line break as whitespace and assigns it to a different node.Here is an example to reproduce the issue:
The parser generates the following output:
The incorrectly parsed line breaks are marked with
<-----
. They should be part of theBLOCK_SCALAR_TEXT
instead.I tried to fix it myself, but it turned out to be quite challenging. Parsing the line break as part of
BLOCK_SCALAR_TEXT
breaks the parent rules which expect the line break as a separator, e.g. theblock_map
parsing function.The text was updated successfully, but these errors were encountered: