prettier-plugin-tailwindcss icon indicating copy to clipboard operation
prettier-plugin-tailwindcss copied to clipboard

Whitepace still removed incorrectly for some ternary conditions

Open karptonite opened this issue 1 year ago • 3 comments

What version of prettier-plugin-tailwindcss are you using? v0.6.5

What version of Tailwind CSS are you using? v3.4.4

What version of Node.js are you using? v18.20.4

What package manager are you using? Yarn

What operating system are you using? macOS

Describe your issue

 <ul [class]="'pagination' + (size ? ' pagination-' + size : '')">

in 0.5.3, this code is unchanged. in 0.6.5, it is changed to

 <ul [class]="'pagination' + (size ? 'pagination-' + size : '')">

This was discussed previously in issue #285. It seems like it was fixed in #288, but apparently not in this case.

karptonite avatar Jul 12 '24 18:07 karptonite