You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and then insert some new key-value pairs and some additional levels of hierarchy, tomlkit squashes everything together when I go to print it, destroying any spaces between sections.
description = "this is a test"
foo = "bar"
mykey = "myvalue"
[dir.subdir]
foo = "bar"
[dir2.subdir2]
foo = "bar"
This is not very readable or the desired output. How can I get tomlkit to place a blank line between each section, to look like this?
description = "this is a test"
foo = "bar"
mykey = "myvalue"
[dir.subdir]
foo = "bar"
[dir2.subdir2]
foo = "bar"
Is there an option to have it avoid trying to preserve whitespace (which it seems to be failing to do here in this example) and dump the output in a conventional format (with a blank line in between sections)?
The text was updated successfully, but these errors were encountered:
If I have a very simple TOML file like this
and then insert some new key-value pairs and some additional levels of hierarchy, tomlkit squashes everything together when I go to print it, destroying any spaces between sections.
This is not very readable or the desired output. How can I get tomlkit to place a blank line between each section, to look like this?
Is there an option to have it avoid trying to preserve whitespace (which it seems to be failing to do here in this example) and dump the output in a conventional format (with a blank line in between sections)?
The text was updated successfully, but these errors were encountered: