-
Notifications
You must be signed in to change notification settings - Fork 298
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
ruamel.yaml loader and dumper: human readability / support for comments #2003
Comments
ghost
added this to the 3.0.1 milestone
Jun 25, 2021
ghost
changed the title
ruamel.yaml loader and dumper: human readability
ruamel.yaml loader and dumper: human readability / support for comments
Jun 26, 2021
Maybe we use the dump-method wrongly? |
ghost
pushed a commit
that referenced
this issue
Aug 16, 2021
This lets us be backwards compatible to JSON and still dump YAML in a readable format. Closes: #2003
ghost
mentioned this issue
Aug 16, 2021
ghost
linked a pull request
Aug 16, 2021
that will
close
this issue
ghost
self-assigned this
Aug 16, 2021
ghost
pushed a commit
that referenced
this issue
Aug 19, 2021
This lets us be backwards compatible to JSON and still dump YAML in a readable format. Closes: #2003
ghost
pushed a commit
that referenced
this issue
Aug 19, 2021
This lets us be backwards compatible to JSON and still dump YAML in a readable format. Closes: #2003
Comments are still not preserved, even though we use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
277f72d fixed the issue that comments where not preserved.
However when the runtime configuration is loaded with the default loader, as it was with the comment, and then dumped afterwards, the resulting file is formatted uglily:
Therefore I reverted the commit with 9a69461, which brings back a human readable and better structured format for the
runtime.yaml
. But OTOH it breaks comments again. We need a solution to preserve both, comments and readability.The text was updated successfully, but these errors were encountered: