django-plus.vim
django-plus.vim copied to clipboard
indentation not working
{% 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
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.