xoofx / Tomlyn

Tomlyn is a TOML parser, validator and authoring library for .NET Framework and .NET Core
BSD 2-Clause "Simplified" License
423 stars 29 forks source link

Output formatted toml #53

Open ChristopherHaws opened 1 year ago

ChristopherHaws commented 1 year ago

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).

xoofx commented 1 year ago

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.