Skip to content

Fix empty array/list trivia indentation in Stroustrup style#3230

Merged
nojaf merged 5 commits into
fsprojects:mainfrom
nojaf:fix-3098
Feb 27, 2026
Merged

Fix empty array/list trivia indentation in Stroustrup style#3230
nojaf merged 5 commits into
fsprojects:mainfrom
nojaf:fix-3098

Conversation

@nojaf

@nojaf nojaf commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

When an empty array contains trivia (blank lines or comments) before the closing bracket and Stroustrup style is used, the closing bracket and its trivia are now properly indented.

Fixes #3098

When an empty array contains trivia (blank lines or comments) before
the closing bracket and Stroustrup style is used, the closing bracket
and its trivia are now properly indented.

Fixes fsprojects#3098
@nojaf nojaf merged commit c73ba5d into fsprojects:main Feb 27, 2026
6 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.

Stroustrup formatting breaks array containing just empty line or comment

1 participant