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

Unnecessary linebreaks with array of objects #22

Open
Thity opened this issue Mar 14, 2019 · 0 comments
Open

Unnecessary linebreaks with array of objects #22

Thity opened this issue Mar 14, 2019 · 0 comments

Comments

@Thity
Copy link

Thity commented Mar 14, 2019

When the first element of an array is an object, it should't begin with '\n'.

This:
yaml.stringify([{frank: 12, arno: 13},{ben: 211, karl: 21}])

Should return that:

---
  - frank: 12
    arno: 13
  - ben: 211
    karl: 21

Instead of:

---
  - 
    frank: 12
    arno: 13
  - 
    ben: 211
    karl: 21
@Thity Thity changed the title Array of objects Unnecessary linebreaks with array of objects Mar 14, 2019
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

1 participant