How can" /> How can" /> How can"/>

Dump empty line with proper formatting in ruamel.yaml

20 Views Asked by At

I have a dict

{"a": ""}

and when I dump it in ruamel.yaml it appears like this:

a: ''

I tried dumping

{"a": None}

instead and got

a:<no space>

How can I get

a:<one space>

so that I can input into the yaml file immediately?

0

There are 0 best solutions below