Tommy icon indicating copy to clipboard operation
Tommy copied to clipboard

Add MinimumInlineWidth to TomlNode.

Open gibbed opened this issue 2 years ago • 0 comments

Supported by TomlArray and TomlTable.

I don't know if such a feature would be desired upstream.

The goal is fine-grained control over spacing when writing inline tables, to better format output for human consumption.

So you can do something like this:

rows = [
  { id = 0,   title = "foo" },
  { id = 10,  title = "bar" },
  { id = 100, title = "baz" }
]

By setting MinimumInlineWidth to 3 on each TomlNode for id.

gibbed avatar Oct 03 '21 18:10 gibbed