Thanks for clarifying what is expected and not expected, I was particularly surprised to hear that ruamel in round-trip does not make an attempt to preserve indentation. Anyway thanks a lot for explaining and for your attention to detail in this report, much appreciated. FWIW, our downstream issue is https://github.com/apache/buildstream/issues/1495
Thanks for clarifying what is expected and not expected, I was particularly surprised to hear that ruamel in round-trip does not make an attempt to preserve indentation. Anyway thanks a lot for explaining and for your attention to detail in this report, much appreciated.
Thanks, I tried it an got the same results. On my side, I'm getting removed comments and blank lines from the file: 24,26d23 < < # We roundtrip integers and floats as strings, to prevent truncation. < 32,35d28 < < # We also roundtrip booleans in various forms as strings to prevent < # normalisation to 'True' and 'False' < 51d43 < 53,55d44 < < # That is all < When using vanilla ruamel.yaml, I only get the expected changes where (boolean/null) values become normalized. Orthogonally, I wonder if that...
Roundtripping regression: not dumping exactly the same content that was loaded
Added clarification to GArray->len documentation