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

indentation not working #12

Open
D1mon opened this issue Mar 18, 2018 · 1 comment
Open

indentation not working #12

D1mon opened this issue Mar 18, 2018 · 1 comment

Comments

@D1mon
Copy link

D1mon commented Mar 18, 2018

{% extends "base.html" %} {% load static %} {% load cache %} {% block content %} {% cache 500 product_list %}                                     
<div class="container">                                                                                                                                
  <ul>                                                                                                                                                 
    {% for product in object_list %}                                                                                                                   
    <li><a href="{% url 'product_detail' product.id %}">{{ product.title }}</a></li>                                                                   
    {% endfor %}                                                                                                                                       
  </ul>                                                                                                                                                
</div>                                                                                                                                                 
{% endcache %} {% endblock %}

all the blocks are lined up in one line, and also it is necessary that the li tag has an indent

@tweekmonster
Copy link
Owner

Not experiencing this. But in my case, the HTML indentation is handled by this plugin: https://github.com/othree/html5.vim

I tried it with the default $VIMRUNTIME/indent/html.vim and it still worked fine. You might have another plugin that took over indentation.

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

2 participants