This is quite a problem for me. We are using ruamel to pre-process CloudFormation files containing inlined Python code that will be uploaded in an AWS Lambda function. The added spaces make the Python code wrong and the Lambdas cannot execute anymore.
Thanks for the reply. Issue 410 is an old one. Strange that our issue appeared only since 0.18.3. Following your comments, I tried this workaround that seems to work in my case: comments = content["organizational_units"].ca.comment content["organizational_units"] = ou["organizational_units"] content["organizational_units"].ca.comment = comments
Newline is stripped after second dump
I also fell for that problem. The useEncoder() workaround works for me. As a bugfix,...