Skip to content

Preserve internal indentation of YAML in comment blocks - #19

Merged
digitalstudium merged 1 commit into
digitalstudium:mainfrom
DanielHabenicht:fix-helmfmt-issue-17
Aug 1, 2026
Merged

Preserve internal indentation of YAML in comment blocks#19
digitalstudium merged 1 commit into
digitalstudium:mainfrom
DanielHabenicht:fix-helmfmt-issue-17

Conversation

@DanielHabenicht

Copy link
Copy Markdown
Contributor

Standalone block comments were reindented by trimming each line's leading whitespace and prepending the current depth indent, which flattened any relative indentation of the comment body (e.g. YAML examples). Now the opening line is reindented and the remaining lines are shifted by the same delta, preserving their relative structure.

Fixes #17

Standalone block comments were reindented by trimming each line's
leading whitespace and prepending the current depth indent, which
flattened any relative indentation of the comment body (e.g. YAML
examples). Now the opening line is reindented and the remaining lines
are shifted by the same delta, preserving their relative structure.

Fixes digitalstudium#17
@digitalstudium
digitalstudium merged commit cbfe6b5 into digitalstudium:main Aug 1, 2026
2 checks passed
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.

formats comment blocks yaml with wrong intendation

2 participants