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

Fix indent after opening tag #5

Open
svelterust opened this issue Sep 13, 2024 · 0 comments
Open

Fix indent after opening tag #5

svelterust opened this issue Sep 13, 2024 · 0 comments

Comments

@svelterust
Copy link

I've noticed there's difference in behaviour between html and svelte mode, and I think it's because this extension is missing following in indents.scm:

(start_tag ">" @end) @indent
(self_closing_tag "/>" @end) @indent

(element
  (start_tag) @start
  (end_tag)? @end) @indent

The issue I'm having is that when my code looks like this (| is cursor):

<h1>|</h1>

And I press enter, it turns into this:

<h1>
    |</h1>

Instead of this:

<h1>
    |
</h1>
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