Skip to content

Whitepace still removed incorrectly for some ternary conditions #305

@karptonite

Description

@karptonite

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions