toml-sort icon indicating copy to clipboard operation
toml-sort copied to clipboard

Bug: toml-sort moves and entries to different groups

Open 15r10nk opened this issue 2 years ago • 0 comments

This bug was reported here https://github.com/macisamuele/language-formatters-pre-commit-hooks/issues/198, but it is actually a bug in toml-sort.

The minimal reproducible toml file for this error is

[x]
v.w = ""

[x.r]

which gets formatted to:

[x]

[x.r]
v.w = ""

15r10nk avatar Dec 31 '23 16:12 15r10nk