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 came across those cases (not an exhaustive list though) on files where long lines and big tag attributes were exceeding the maximum line length. While formatting some of them by hand, I figured out that the formatting was actually quite different depending on the initial state.
Yeah this is because in XML, whitespace is sensitive in every element unless otherwise specified by the schema. Try using xmlWhitespaceSensitivity to set "ignore", that's probably what you want.
I came across those cases (not an exhaustive list though) on files where long lines and big tag attributes were exceeding the maximum line length. While formatting some of them by hand, I figured out that the formatting was actually quite different depending on the initial state.
Prettier version : 1.19.1
Pretter options :
Case 1
Before
After
Here, the
b
tag is not indented, and the first half ofc
tag as well as his attributes are missing an indent.Case 2
Before
After
The
c
tag is correctly indented,b
tag still isn't.Case 3
Before
After
I don't really know what is going on on this one.
The text was updated successfully, but these errors were encountered: