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
MergedYamlMapping wipes out comments #572
Comments
@robross0606 thank you for reporting this. I'll assign someone to take care of it soon. |
Also, is there any way to preserve blank newline spacing when reading or writing the files? The original file has extra newlines between fields, but these appear to be lost on ingestion. |
@amihaiemil I couldn't find any assignee for this task. This is either because there are no contributors with role Please, make sure there is at least one available contributor with the required role and the project can afford to pay them. |
No, the library does not preserve empty lines as they are not semantically relevant. We'll look into the comments issue. |
When I use
MergedYamlMapping
withoverrideConflicts
, the resulting YAML file loses all comments from the original YAML on merge. Without producing an entire example:Produces:
Note how the original has comments while the updated does not. The second you enable
overrideConflicts
, all comments are lost in the resulting merge on any item that is overridden.The text was updated successfully, but these errors were encountered: