You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not really sure when this happens but the as you can see in the first example all the additional line break are reduced to one and in the second example the line breaks are completely removed.
thorn0
changed the title
JSX line break normalization inconsistent
Empty lines unexpectedly removed in JSX
May 26, 2020
thorn0
added
type:bug
Issues identifying ugly output, or a defect in the program
and removed
status:needs discussion
Issues needing discussion and a decision to be made before action can be taken
labels
May 26, 2020
I am not really sure when this happens but the as you can see in the first example all the additional line break are reduced to one and in the second example the line breaks are completely removed.
Prettier 1.10.2
Playground link
Input:
Output:
Expected behavior:
I would expect that both cases behave the same way.
The text was updated successfully, but these errors were encountered: