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 Example 8.2 indentation indicator #16

Closed
LLyaudet opened this issue Apr 1, 2016 · 2 comments
Closed

YAML 1.2 Example 8.2 indentation indicator #16

LLyaudet opened this issue Apr 1, 2016 · 2 comments

Comments

@LLyaudet
Copy link

@LLyaudet LLyaudet commented Apr 1, 2016

Hi,

According to section "8.1.1.1" the indentation indicator is relative to the indentation level of the parent node.
For me, in "Example 8.2" the parent node is the "seq" with indentation level 0.
Hence, the indentation indicator for "explicit" should be 2 instead of 1.
Am I correct ? If not, where do I make an error ?

Best regards,
Laurent Lyaudet

@eemeli
Copy link
Member

@eemeli eemeli commented Feb 13, 2018

The value of the block scalar in question is " explicit", i.e. it has a leading space. The first space on that line is taken by the indentation due to the explicit "1" level, the second is a part of the scalar value.

Loading

@ingydotnet
Copy link
Member

@ingydotnet ingydotnet commented Aug 7, 2021

The explicit indentation could be 1 or 2, but in this example the semantics match the value 1 used.

Loading

@ingydotnet ingydotnet closed this Aug 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants