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

Support configurable indent #202

Open
jvehent opened this issue Sep 21, 2016 · 2 comments
Open

Support configurable indent #202

jvehent opened this issue Sep 21, 2016 · 2 comments

Comments

@jvehent
Copy link

jvehent commented Sep 21, 2016

The default indentation in this package is 2 spaces. In some projects, I'd like the ability to use 4 spaces to generate files identical to other YAML parser (Python ruamel.yaml uses 4 spaces). A configurable indentation would be great.

The source hash yaml_emitter_set_indent, but that doesn't seem to be used.

@lelvisl
Copy link

lelvisl commented Feb 2, 2018

It is also necessary to configure which keys to output in a compressed form
Example:
before

- name: John
  age: 30
- name: Mary
  age: 35

after

- {name: John, age: 30}
- {name: Mary, age: 35}

@niemeyer
Copy link
Contributor

This will come with the in-progress v3 work.

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