Skip to content

fix(fmt): stabilize multiline comment indentation - #16788

Merged
mattsse merged 1 commit into
masterfrom
fig/fmt-comment-indent
Sep 10, 2026
Merged

fix(fmt): stabilize multiline comment indentation#16788
mattsse merged 1 commit into
masterfrom
fig/fmt-comment-indent

Conversation

@figtracer

Copy link
Copy Markdown
Member

Multiline block comments inside expressions drift on repeated forge fmt runs because continuation lines are printed relative to the expression while normalization uses the comment's opening column. Align those lines with the opening comment and measure tab indentation consistently, preserving internal alignment and blank lines. Written with Codex assistance for implementation and regression tests.

Align mixed block comment continuations with the opening column and normalize tab indentation in display columns. Preserve internal alignment and blank lines across repeated formatting.
@github-actions

Copy link
Copy Markdown
Contributor

✅ Changelog found

The deterministic check will validate the changed entry.

@figtracer
figtracer marked this pull request as ready for review September 10, 2026 19:52
@mattsse
mattsse merged commit 373751a into master Sep 10, 2026
42 checks passed
@mattsse
mattsse deleted the fig/fmt-comment-indent branch September 10, 2026 23:57
@github-project-automation github-project-automation Bot moved this to Done in Foundry Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants