[Angular] Unnecessary newline before ending angle bracket #6241
Labels
lang:angular
Issues affecting Angular template (not general JS/TS issues used for Angular)
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 1.18.2
Playground link
Input:
Output:
Expected behavior:
The newline should not be added; the original html was already fine. It appears to occur whenever non-whitespace is added directly after the angle bracket, presumably to make long spans of text easier to read? I think it's doing it too eagerly, if that's the case; there's still plenty of room on the line.
This might be related to #5667, although that one is talking about template strings with
--parser typescript
.The text was updated successfully, but these errors were encountered: