Skip to content

Keep empty function gaps under preserve-block-newline-gaps - #1159

Open
GhostCoder6969 wants to merge 3 commits into
JohnnyMorganz:mainfrom
GhostCoder6969:preserve-gap-trailing-ws-1146
Open

GhostCoder6969 wants to merge 3 commits into
JohnnyMorganz:mainfrom
GhostCoder6969:preserve-gap-trailing-ws-1146

Conversation

@GhostCoder6969

Copy link
Copy Markdown
Contributor

Fixes #1146. Collapsing an empty function that held a blank line dropped the gap and left a trailing space, and a second run collapsed everything. Preserve mode now keeps those functions multiline, with a regression test. Gapless empty functions still collapse like before.

GhostCoder6969 and others added 3 commits September 27, 2026 16:09
Collapsing an empty function with a blank line dropped the gap and left a trailing space, and a second run collapsed everything. Fixes JohnnyMorganz#1146.

This branch has not been deployed

No deployments
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.

preserve-block-newline-gaps=Preserve inserts trailing whitespace for an empty function

2 participants