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

Tpl: Incorrect indentation for multi-line self closing tags #84

Open
jdufresne opened this issue Nov 18, 2014 · 0 comments
Open

Tpl: Incorrect indentation for multi-line self closing tags #84

jdufresne opened this issue Nov 18, 2014 · 0 comments

Comments

@jdufresne
Copy link
Contributor

Take the following template:

{% if context_var %}
  <img class="my-class"
       src="blah.png"
       alt="an image">
{% endif %}

Upon indenting the entire buffer, the result then looks like:

{% if context_var %}
  <img class="my-class"
       src="blah.png"
       alt="an image">
     {% endif %}

I would expect it to remain the same. This only happens when the self closing tag spans multiple lines. This happens for both XHTML style self closing tags (<img />) and HTML5 style self closing tags (<img>).

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