Skip to content

file: indent subsequent shadow keys on write - #403

Closed
team-humaki wants to merge 1 commit into
go-ini:v1from
team-humaki:file-indent-shadow-keys
Closed

team-humaki wants to merge 1 commit into
go-ini:v1from
team-humaki:file-indent-shadow-keys

Conversation

@team-humaki

Copy link
Copy Markdown

Shadow keys after the first dropped the section indent on write (WriteToIndent / pretty output), so Fluent Bit-style configs lost leading spaces on whitelist_key copies.

Repeat the indent for each shadow value. Fixes #367.

unknwon commented Nov 11, 2026

Copy link
Copy Markdown
Member

Thanks! PR 388 fixed the same bug with the same output and is merged, so I'm closing this as a duplicate.

@unknwon unknwon closed this Nov 11, 2026
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

Successfully merging this pull request may close these issues.

config with shadow results in indentation error

2 participants