Angular/HTML/JSX parser don't keep original line breaks for inputs/attributes/props #5379
Labels
lang:html
Issues affecting HTML (and SVG but not JSX)
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
Currently Prettier does a very good job in keeping the original line breaks for JS objects for example, or even props in React/JSX components:
Playground
Playground 2
This is not translated to Angular inputs/HTML attributes/JSX props (in case the
printWidth
allows for it).Playground (html)
Playground (angular)
Playground (JSX)
It would be nice to have a similar behavior to how objects behave - such that if a line break is introduced between each attribute/input/prop - they would be kept.
Furthermore - ones that don't match will be aligned, the way that:
Is transformed to:
Then this:
Would be transformed to:
The text was updated successfully, but these errors were encountered: