Closed f11xter closed 6 months ago
because I dislike the way Prettier formats void tags
Me too, so I made this.
Personally I prefer the second one, but it may conflict with the closingBracketSameLine
option.
If by the second one you mean the compromise, I agree.
It probably would conflict, so perhaps it could only be activated when closingBracketSameLine
is false, since presumably users with it set to true wouldn't want the proposed changes anyway.
<!-- closingBracketSameLine false -->
<span
class=""
style=""
>retains the current default behaviour</span>
<span class="some long class"
>uses proposed behaviour</span>
<!-- closingBracketSameLine true -->
<span
class=""
style="">retains the current
default behaviour</span>
<span class="some long class">retains
the current default behaviour</span>
Yes, we're on the same idea.
First a thank you.
I switched to markup_fmt and dprint because I dislike the way Prettier formats void tags, and I've been really enjoying the experience, so thank you very much for making this.
Now the question.
markup_fmt wraps space-sensitive tags with long properties + short text content differently to how it wraps them with short properties + long text:
I find this a little confusing to read.
Would it be possible to implement an option that's closer to (what I believe is) Prettier's behaviour?
or a compromise between the two?