Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class tag with many classes got split into multiple lines #3021

Closed
letitfly opened this issue Jun 23, 2021 · 1 comment
Closed

class tag with many classes got split into multiple lines #3021

letitfly opened this issue Jun 23, 2021 · 1 comment

Comments

@letitfly
Copy link

letitfly commented Jun 23, 2021

  • [ V] I have searched through existing issues
  • [ V] I have read through docs
  • [ V] I have read FAQ
  • [ V] I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: macOS
  • Vetur version: v0.34.1
  • VS Code version: 1.57.1

Problem

I started using tailwind with Vue which often results very long classes, for example:
class="t-border-gray-500 t-border-0 t-border-r t-border-solid t-text-center t-flex t-justify-between"

and got formatted into:
class="
t-border-gray-500
t-border-0
t-border-r
t-border-solid
t-text-center
t-flex
t-justify-between
"

Weirdly enough, this only happens in a .vue file, but works fine in a html file, both are using prettier. So I think it may have something to do with Vetur.

Thanks

@letitfly
Copy link
Author

I did something and it is not appearing again. Close for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant