-
-
Notifications
You must be signed in to change notification settings - Fork 774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YAML 1.2 spec: Example 8.2. Block Indentation Indicator #253
Comments
For fix squad reference:
|
Fixes nodeca#253: loader should not add an extra newline at the beginning of block scalars that have an explicit indentation indicator. Cause: "Detected indent" was assumed logically equivalent to "did read non-empty line". This no longer holds with an indentation indicator: indent is detected before any content is read. Fixes nodeca#276: loader should not remove a trailing newline for block scalars with "+" chomping. Cause: "+" chomping didn't account for the last content newline before the trailing empty lines.
Fixes nodeca#253: loader should not add an extra newline at the beginning of block scalars that have an explicit indentation indicator. Cause: "Detected indent" was assumed logically equivalent to "did read non-empty line". This no longer holds with an indentation indicator: indent is detected before any content is read. Fixes nodeca#276: loader should not remove a trailing newline for block scalars with "+" chomping. Cause: "+" chomping didn't account for the last content newline before the trailing empty lines.
Second part is still not clear. @aepsilon pointed that it's possible spec bug in #278
I think this needs further investigation. I'll need to review that part of the spec by myself as well. |
too old |
When I try to parse example 8.2 at http://www.yaml.org/spec/1.2/spec.html#Block
I got:
But according to the canonical form last two lines must not get a leading '\n':
The text was updated successfully, but these errors were encountered: