You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>Sammy Sosa completed anotherfine season with great stats.63 Home Runs0.288 Batting AverageWhat a year!
The main reason I find that this is odd, is if you use the YamlLoader and do zero processing on the data, and then immediately dump it back out again - it changes the file. I would expect the API's to be compatible (even if it requires configuration).
The text was updated successfully, but these errors were encountered:
indeed it does not. this is because there is several Yaml representations of the same datastructure in Yaml, and the dumper chooses one of them (the easiest one to implement btw).
How would you imagine an API allowing to choose the representation used for each value when dumping ? I don't see any easy to use interface for that.
…cks (xabbuh)
This PR was merged into the 3.1-dev branch.
Discussion
----------
[Yaml] option to dump multi line strings as scalar blocks
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #16236, #16604, #17912, #17391
| License | MIT
| Doc PR | TODO
Commits
-------
eff6902 option to dump multi line strings as scalar blocks
http://yaml.org/spec/1.2/spec.html#id2760844
Specifically, there is no way to output this:
The main reason I find that this is odd, is if you use the
YamlLoader
and do zero processing on the data, and then immediately dump it back out again - it changes the file. I would expect the API's to be compatible (even if it requires configuration).The text was updated successfully, but these errors were encountered: