Preserving long single line string as is when round-triping in ruamel
Preserving long single line string as is when round-triping in ruamel Question: In the below code, I’m trying to write a load and write a YAML string back to ensure that it retains the spacing as is. import ruamel.yaml yaml_str = """ long_single_line_text: Hello, there. This is nothing but a long single line text which …