I hope i am posting in the correct area.
Beutify indentation is ignoring Jinja 2
I am using Beautify - HookyQR to help with formatting and indexation. HTML, Python, CSS ... everything works fine. But when i start using Python, FLASK with JINJA2 as i save it just ignore all the content and i lost all the indexation
This is what i was expecting:
<div class="form-group">
{{ form.username.label(class="form-control-label") }}
{% if form.username.errors %}
{{ form.username(class="form-control form-control-lg is-invalid") }}
<div class="invalid-feedback">
{% for error in form.username.errors %}
<span>{{ error }}</span>
{% endfor %}
</div>
{% else %}
{{ form.username(class="form-control form-control-lg") }}
{% endif %}
</div>
This is the code when i save:
<div class="form-group">
{{ form.username.label(class="form-control-label") }}
{% if form.username.errors %}
{{ form.username(class="form-control form-control-lg is-invalid") }}
<div class="invalid-feedback">
{% for error in form.username.errors %}
<span>{{ error }}</span>
{% endfor %}
</div>
{% else %}
{{ form.username(class="form-control form-control-lg") }}
{% endif %}
</div>
I was making some search about this but i just can not find any tips.
If someone can help me on that should be awesome.
Thanks!
What i use
I am a PC USER and my text editor is VSCODE win 10.
Extension that i use
Beautify - Live Server - Material Icon Theme - Material Theme - SQL Server (mssql)