You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
Single line per attribute is set to true in my project, but prettier only formats multi-attribute html lines when they are past the printWidth length. Prettier seems to work properly because I copied the exact same code into a normal HTML file and it worked as expected there.
Expected Behavior
When Single Line Per Attribute is true it should work exactly the same in svelte files as it does in normal html files.
Steps to Reproduce*
Copy this code into two files, one ending in .svelte and the other ending in .html
I'm using prettier-plugin-tailwind which says that it packages prettier-plugin-svelte. I'm using the latest version of that, 0.1.13, but idk which version of the svelte plugin they are using. Should I post an issue there?
Problem
Single line per attribute is set to true in my project, but prettier only formats multi-attribute html lines when they are past the
printWidth
length. Prettier seems to work properly because I copied the exact same code into a normal HTML file and it worked as expected there.Expected Behavior
When
Single Line Per Attribute
istrue
it should work exactly the same in svelte files as it does in normal html files.Steps to Reproduce*
Copy this code into two files, one ending in
.svelte
and the other ending in.html
Copy this code into your
.prettierrc
filePut this in your
package.json
"format": "prettier --write ."
I use yarn, so I run
yarn run format
from the command line. I get different results in the html and svelte files.The text was updated successfully, but these errors were encountered: