Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prettier toml serialization? #185

Open
themg95 opened this issue Oct 18, 2024 · 2 comments
Open

Prettier toml serialization? #185

themg95 opened this issue Oct 18, 2024 · 2 comments

Comments

@themg95
Copy link

themg95 commented Oct 18, 2024

I've noticed that in older versions toml is serialized like this:

[category]
option1 = true
option2 = false

but now it's serialized like this:

category = {option1 = true, option2=false}

Is there an option to switch to the older formatting?

@TheElectronWill
Copy link
Owner

It depends on TomlWriter#writeTableInlinePredicate that you can set with TomlWriter#setWriteTableInlinePredicate. You can try this to see if it improves the result.

@themg95
Copy link
Author

themg95 commented Oct 20, 2024

I've tried setting the predicate to just false and to just true but none of them did anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants