Skip to content

fix: only evaluate simple text block escape sequences#861

Merged
jtkiesel merged 1 commit intojhipster:mainfrom
jtkiesel:fix/text-block-escape-evaluation
Apr 27, 2026
Merged

fix: only evaluate simple text block escape sequences#861
jtkiesel merged 1 commit intojhipster:mainfrom
jtkiesel:fix/text-block-escape-evaluation

Conversation

@jtkiesel
Copy link
Copy Markdown
Contributor

@jtkiesel jtkiesel commented Apr 27, 2026

What changed with this PR:

No longer evaluate unicode escape sequences in text blocks. Also no longer evaluate octal escape sequences, \b, and \f in embedded language text blocks, in favor of only evaluating "simple" escape sequences working with whitespace, quotes, and \\. Finally, fixes some other bugs with embedded language text blocks, such as properly escaping sequences of >3 " (for example instead of """" being improperly escaped as \"""", it will now be escaped as ""\""), and properly avoiding trailing unescaped " from bleeding into the closing """.

@jtkiesel jtkiesel force-pushed the fix/text-block-escape-evaluation branch from a201d7f to 393942c Compare April 27, 2026 06:37
@jtkiesel jtkiesel changed the title fix: only evaluate simple escape sequences in text blocks fix: only evaluate simple text block escape sequences Apr 27, 2026
@jtkiesel jtkiesel merged commit 1c67eea into jhipster:main Apr 27, 2026
6 checks passed
@jtkiesel jtkiesel deleted the fix/text-block-escape-evaluation branch April 27, 2026 06:46
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