We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prettier 2.0.4 Playground link
--parser babel --print-width 100
Input:
const message = html` <p> <span>Well wouldja lookit that - I mis-labeled the printer! <img alt="馃う" src="u1f926.png" /></span> </p> `;
Output:
const message = html` <p> <span >Well wouldja lookit that - I mis-labeled the printer! <img alt="馃う" src="u1f926.png" /></span> </p> `;
Expected behavior:
const message = html` <p> <span> Well wouldja lookit that - I mis-labeled the printer! <img alt="馃う" src="u1f926.png" /> </span> </p> `;
The text was updated successfully, but these errors were encountered:
Dupe of #8302, oops!
Sorry, something went wrong.
Not really a dupe. If you need whitespace before "Well..." and after img, add it manually. Prettier won't do it because it's unsafe.
img
After adding whitespace and setting printWidth to 80, we get the expected result:
printWidth
Prettier 2.0.5 Playground link
--parser babel
No branches or pull requests
Prettier 2.0.4
Playground link
Input:
Output:
Expected behavior:
The text was updated successfully, but these errors were encountered: