-
Notifications
You must be signed in to change notification settings - Fork 17
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
Empty lines fail to round trip #48
Comments
Yes, line spaces and extra indentation is not preserved in a round trip. |
My use-case is to edit/format YAML document while preserving the file structure, and loosing empty lines is not very practical. It doesn't seems like a very intrusive change to add I also noticed |
It would be nice to have such a feature. |
This change adds rudimentary support for preserving empty lines. Fixes: haskell-hvr#48
It seems like empty lines do not have a corresponding Event:
Results in (after passing through
yaml-test yaml2yaml
):Would it be possible to add a new event or comment attribute to preserve empty lines?
The text was updated successfully, but these errors were encountered: