Skip to content

Skip heredoc/nowdoc bodies when spacing attribute concat in blink - #244

Merged
TomasVotruba merged 1 commit into
mainfrom
blink-attr-concat-heredoc
Oct 30, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
blink-attr-concat-heredoc

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

PR #240 (merged) spaces the . concat operator inside #[...] attributes, but
its char-scanner only skips '...' / "..." strings, not heredoc/nowdoc bodies.
A nowdoc inside an attribute (e.g. help: <<<'TXT' ... TXT) therefore had the
dots in its body spaced - %command.name% became %command . name% and
sentence periods gained a space - which ECS never does. This regressed mautic
parity from 0% to 0.58% (26 files, over the 0.05% gate).

Fix: in spaceAttributeConcat, detect a <<< heredoc/nowdoc start and skip its
whole body via the existing heredocEnd helper, so dots inside are left alone.
Real concat in the same attribute is still spaced.

@TomasVotruba
TomasVotruba merged commit 08d9332 into main Oct 30, 2026
21 checks passed
@TomasVotruba
TomasVotruba deleted the blink-attr-concat-heredoc branch October 30, 2026 20:10
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.

1 participant