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

Formatting Bug with multiple template tags nested in component #2643

Open
4 tasks done
JamieCurnow opened this issue Jan 21, 2021 · 1 comment
Open
4 tasks done

Formatting Bug with multiple template tags nested in component #2643

JamieCurnow opened this issue Jan 21, 2021 · 1 comment

Comments

@JamieCurnow
Copy link

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

Info

  • Platform: macOS
  • Vetur version: 0.32.0
  • VS Code version: 1.52.1

Problem

Indentation of HTML is incorrect when (and only when) multiple <template> tags are used to define named slots in a component and the main <template> tag has lang="html".

Formatting Bug with multiple template tags nested in component

Reproducible Case

Work around

Maybe lang="html" is no longer needed in the main template tag? Removing that fixes the issue.

@yoyo930021
Copy link
Member

We are used vue-html name in template language.
Maybe we need to alias to html.

Ref: #2340

@octref Is there a reason we don't do this?

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

No branches or pull requests

2 participants