YamlDotNet
YamlDotNet copied to clipboard
Lines with space characters immediately before line break.
When serializing a scalar block literal type, and there exists a space character ' ' immediately before a line break '/n' or '/r' in any of the lines within, the Emitter class ignores the requested Scalar Style and defaults to Double Quoted.
A space character before a line break is valid yaml.
Here is a sample project that reproduces the issue:
https://github.com/wspresto/yamldotnet-empty-space-bug
@aaubry This issue coalesces the concerns I was expressing to you throughout the project history. I apologize for my previous scattered comments that may have been confusing. Hope this helps!