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

first item in a multi-item level has no line feed in YAML #37

Open
grahamdyson opened this issue Jun 19, 2019 · 0 comments
Open

first item in a multi-item level has no line feed in YAML #37

grahamdyson opened this issue Jun 19, 2019 · 0 comments

Comments

@grahamdyson
Copy link
Member

Currently the first item in a levels with multiple items is written in YAML with both the level sequence dash and the first items map dash on the same line.

- - item1
  - item2
- - id: item1
    keyOfItem1: valueOfItem1
  - item2

This makes it harder to distinguish between the contents of the first item and the other items in the level.

For example, fold/unfold in a YAML editor will usually be performed on a line. So the fold/unfold can only be performed on both the contents of first item and the other items in the level.

Having a line break after the first level sequence dash avoids this problem.

-
  - item1
  - item2
-
  - id: item1
    keyOfItem1: valueOfItem1
  - item2
@grahamdyson grahamdyson modified the milestone: backlog Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant