Closed my1e5 closed 4 weeks ago
@my1e5 thanks for the report.
The TOML specifications provide an example on how the content might look like and it is explicit about the fact that whitespaces are ignored.
This library aims to provide a "single" way to render the output file, while not altering the semantic of it.
Removing the spaces is a direction that the underlying toml_sort
library is using.
Given that the generated output is conform to the standard, I don't think that this is an issue.
From the TOML specification on arrays - https://toml.io/en/v1.0.0#array
Note how there are spaces before and after the curly brackets.
But
pretty-format-toml
is removing these spaces.