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

add inner spacing to inline objects (non-empty) - BREAKING

Open brody4hire opened this issue 1 year ago • 0 comments

I think this would be much cleaner. I would be happy to make this optional (my time permitting), if needed.

example from tests/examples/sorted/inline-default.toml:

'aalist' = { c = "test", a = "another test" } # list comment

multi-line example from tests/examples/sorted/inline-default.toml:

[a]
test = [
  { x = [
      "foo",
      "bar"
    ], a = [
      ""
    ] },
  { y = [
      "foo",
      "baz"
    ] }
]

NOTE that I would personally care the most about the single-line object case, no need for multi-line object formatting in my work at this point.

brody4hire avatar Jan 05 '24 02:01 brody4hire