-
Notifications
You must be signed in to change notification settings - Fork 327
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
Indentation of sequence elements #224
Comments
I actually prefer this representation and use it across all YAML files I write manually. |
Anyone ? Is libyaml even maintained ? |
@galdor I too would really appreciate the ability to be able to output sequences with this style of indentation. |
I'd like this feature to be implemented, too. I can think of three different ways we might want to do that:
Any maintainer input here? I understand this is probably a lower priority item than some other issues. |
I agree that many huge yaml files with nested values would be easy to read if the emitter produce sequences with indentation. |
In the current version (0.2.5) the emitter does not indent sequence elements for the block sequence style, e.g.:
While correct, it is way harder to read than the more conventional representation where sequence elements are indented:
This is quite noticeable in large documents with lots of deeply nested values.
Would it be possible to add an option to support this kind of output ?
Looking at the repository, I am not sure who is in charge of coordinating development for libyaml, so any pointer is welcome :) I may be able to provide a patch if someone can provide a minimum of guidance and is ok with merging it and releasing a new version.
A lot of libraries in various languages rely on libyaml, this would help lots of people !
The text was updated successfully, but these errors were encountered: