In nunjucks templates where web-mode-engine is django, {% set %} blocks are not indented correctly.
Note that I am specifically referring to when {% set %} is supplied only with a variable name, not with the equal sign nor a value. {% set var = val %} does not start a block and indentation of subsequent code is correct in that case.
Before (all lines have indentation):
{% set foo %}
bar
{% endset %}
Expected results after indentation:
{% set foo %}
bar
{% endset %}
Actual results:
{% set foo %}
bar
{% endset %}
Perhaps another minor template engine (like jinja) needs to be created?
In nunjucks templates where
web-mode-engine
isdjango
,{% set %}
blocks are not indented correctly.Note that I am specifically referring to when
{% set %}
is supplied only with a variable name, not with the equal sign nor a value.{% set var = val %}
does not start a block and indentation of subsequent code is correct in that case.Before (all lines have indentation):
Expected results after indentation:
Actual results:
Perhaps another minor template engine (like jinja) needs to be created?