Skip to content

Option to disable indentation #120

@W4RH4WK

Description

@W4RH4WK

Is your feature request related to a problem? Please describe.
I'd like to have TOML output with sub-tables not getting indented. It's not really a problem, just a personal preference.

Describe the solution you'd like
A flag for the formatter: allow_indentation, defaults to true.
Or, if the flags property of the formatter defaults to no flags set, disallow_indentation.

Additional context
Instead of this:

[Display]
displayName = '\\.\DISPLAY1'
fpsLimit = 100
vsync = true
windowMode = 'Windowed'

    [Display.mode]
    height = 1080
    refreshRate = 60
    width = 1920

[Graphics]
anisotropicFiltering = 'Medium'
antiAliasing = 'Off'

I'd like to have this:

[Display]
displayName = '\\.\DISPLAY1'
fpsLimit = 100
vsync = true
windowMode = 'Windowed'

[Display.mode]
height = 1080
refreshRate = 60
width = 1920

[Graphics]
anisotropicFiltering = 'Medium'
antiAliasing = 'Off'

Metadata

Metadata

Assignees

Labels

featureNew feature or enhancement requestimplemented in v3Fixes + features which were implemented in v3 release.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions