Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Ignore self closing tags #100
Conversation
|
I think my change will make |
|
@ycmjason Very possible, that's why I still don't fix this issue. |
|
@othree that's true. Any ideas how we can solve this? |
|
I will try to fix this again. One quick workaround is by setting the variable let g:html_indent_inctags = 'custom,ele'Buffer variable also works too. |
|
I see. But the custom tags varies in each project and there are probably a lot of different components in a single project. The tag will end up growing indefinitely. I am not a big fan of this solution. Instead can we assume all tags will indent lines except for void elements? Void elements basically are just |
|
I don't fully understand how the indent/html.vim works, but it looks like it first check if it is a custom element? Perhaps we should first check if it is void element? |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

Self-closing tags like these:
<my-awesome-component />will be treated as open tags and indent the lines following it.I have added to the regex to ignore these tags.