Skip to content

Formatter: Fix whitespace preservation around ERB tags and punctuation#864

Merged
marcoroth merged 1 commit into
mainfrom
formatting-whitespace-with-non-punctuation
Nov 13, 2025
Merged

Formatter: Fix whitespace preservation around ERB tags and punctuation#864
marcoroth merged 1 commit into
mainfrom
formatting-whitespace-with-non-punctuation

Conversation

@marcoroth

Copy link
Copy Markdown
Owner

This pull request fixes the formatter to preserve whitespace (or lack thereof) around ERB tags when line wrapping occurs. Previously, the formatter would incorrectly add spaces before punctuation like apostrophes after ERB tags.

Resolves #855

@marcoroth marcoroth merged commit 08f644c into main Nov 13, 2025
12 of 13 checks passed
@marcoroth marcoroth deleted the formatting-whitespace-with-non-punctuation branch November 13, 2025 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Formatter: Adding whitespace before ' that follows Ruby tag

1 participant