Skip to content

Avoid linebreaks in embedded template interpolations#18380

Merged
fisker merged 14 commits intoprettier:mainfrom
fisker:18369
Dec 6, 2025
Merged

Avoid linebreaks in embedded template interpolations#18380
fisker merged 14 commits intoprettier:mainfrom
fisker:18369

Conversation

@fisker
Copy link
Member

@fisker fisker commented Nov 30, 2025

Description

#15209 missed embedded templates.

Fixes #18369

Checklist

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 30, 2025

Open in StackBlitz

yarn add https://pkg.pr.new/prettier/prettier/@prettier/plugin-hermes@18380.tgz
yarn add https://pkg.pr.new/prettier/prettier/@prettier/plugin-oxc@18380.tgz
yarn add https://pkg.pr.new/prettier/prettier@18380.tgz

commit: 5ed5e35

@netlify
Copy link

netlify bot commented Nov 30, 2025

Deploy Preview for prettier ready!

Name Link
🔨 Latest commit 5ed5e35
🔍 Latest deploy log https://app.netlify.com/projects/prettier/deploys/692ce54097ccfc00086bc372
😎 Deploy Preview https://deploy-preview-18380--prettier.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@fisker fisker added this to the 3.8 milestone Nov 30, 2025
@fisker fisker marked this pull request as ready for review November 30, 2025 11:07
@fisker fisker changed the title Avoid linebreaks in embeded template interpolations Avoid linebreaks in embedded template interpolations Nov 30, 2025
@fisker fisker marked this pull request as draft November 30, 2025 11:15
@fisker fisker marked this pull request as ready for review November 30, 2025 16:26
@fisker fisker merged commit a7b8a4f into prettier:main Dec 6, 2025
35 checks passed
@fisker fisker deleted the 18369 branch December 6, 2025 06:45
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.

Improve template literal expression print in embeded language

1 participant