Tomlyn icon indicating copy to clipboard operation
Tomlyn copied to clipboard

Output formatted toml

Open ChristopherHaws opened this issue 2 years ago • 1 comments

Is it possible to output formatted toml? No matter what I seem to try, it outputs the entire model on one line and I have to format it using VS code. My model (and all of it's children) implement ITomlMetadataProvider and I am simply calling Toml.FromModel(model) with no options (none of the options seemed like they had anything to do with formatting).

ChristopherHaws avatar Jan 06 '23 04:01 ChristopherHaws

It is supposed to be formatted, all the tests in Tomlyn.Tests are relying on this, but it could be something else on your side that I can't tell. If you have a very small repro to test, that would help.

xoofx avatar Jan 25 '23 06:01 xoofx