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 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 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.

@ingydotnet
Copy link
Member

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

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

3 participants