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
This is a known issue with how ruamel.yaml handles comments (ca objects). Having said that, yamlpath should be able to compensate for this unexpected behavior.
The author of ruamel.yaml has indicated that I really should wait for the next release of his package before I tackle comment handling like this. Comments are complex, internal, and the API will be entirely unpredictable until he's done with his rewrite. So, for now, I'm shelving this.
Operating System
Version of Python and packages in use at the time of the issue.
Minimum sample of YAML (or compatible) data necessary to trigger the issue
Complete steps to reproduce the issue when triggered via:
Expected Outcome
Actual Outcome
As you can see, the Pre-comment was preserved while both the post-comment and all whitespace after the target key was deleted.
Screenshot(s), if Available
The text was updated successfully, but these errors were encountered: