How can I dump an multi-line string to a toml file?
My approach was:
mystr = """Some
content"""
with open('dump.toml', 'w') as f:
toml.dump({'content' : mystr}, f)
Expected output in toml file:
However, the content was automatically converted to a single line string
mystr="Some\\ncontent"
Is there any code which helps to reach my expected result?