Add line break before forced space to stay within the print width #4527
Labels
lang:jsx
Issues affecting JSX (not general JS issues)
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:duplicate
Issues that are a duplicate of a previous issue
Prettier 1.12.1
Playground link
Input:
Output:
Expected behavior:
With
--print-width=80
, the forced space ({" "}
) should be placed on the next line so that the line does not exceed the print width.The text was updated successfully, but these errors were encountered: