Skip to content
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 incorrect result #28

Closed
dnsl48 opened this issue Jun 4, 2016 · 1 comment
Closed

YAML 1.2 spec: Example 8.2 incorrect result #28

dnsl48 opened this issue Jun 4, 2016 · 1 comment

Comments

@dnsl48
Copy link

dnsl48 commented Jun 4, 2016

Result of the Example 8.2 written in canonical format contains an error in the line 7.

Source:


·→
·detected

Current (wrong) result:

  !!str "\t·detected\n",

As Block Folding declaration says:
In addition, folding does not apply to line breaks surrounding text lines that contain leading white space. Note that such a more-indented line may consist only of such leading white space.

Which mean that the tab preserves the following line feed and the correct result is:

  !!str "\t\ndetected\n",
@dnsl48 dnsl48 changed the title YAML 1.2 spec: Example 8.2 incorrect YAML 1.2 spec: Example 8.2 incorrect result Jun 4, 2016
@perlpunk
Copy link
Member

Thanks, this was fixed in yaml/yaml-spec#174

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants