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

Option to keep vertical spacing #4

Open
pbsladek opened this issue Aug 30, 2017 · 1 comment
Open

Option to keep vertical spacing #4

pbsladek opened this issue Aug 30, 2017 · 1 comment

Comments

@pbsladek
Copy link

database:

  mysql:
    core: null

Often I use vertical space to make it a little easier on the eyes. Possible to add an option to support this?

@adamvoss
Copy link
Owner

This is a limitation of by the underlying library that provides formatting. If there is a library that handles this I would consider switching.

If no existing suitable library can be found and someone wants to take this on, my recommendation would be to start from the parsed AST from yaml-ast-parser (already used by this project) and write new formatted output from that. There you could include options for preserving whitespace in your implementation. If doing this, you may want to consider mulesoft-labs/yaml-ast-parser#1 as your implementation could also resolve that issue as well (and the code referenced there may be a starting point).

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

2 participants