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

Incorrect html formatting #31

Open
trK54Ylmz opened this issue Jun 23, 2020 · 0 comments
Open

Incorrect html formatting #31

trK54Ylmz opened this issue Jun 23, 2020 · 0 comments

Comments

@trK54Ylmz
Copy link

When I try to format the Jinja statements in HTML file, the formatting seems incorrect,

Current,

{% if 1 == 1 %}
<div></div>
{% for i in range(5) %}
<span>{{ i }}</span>
{% endfor %}
{% endif %}

Expected,

{% if 1 == 1 %}
    <div></div>
    {% for i in range(5) %}
        <span>{{ i }}</span>
    {% endfor %}
{% endif %}

HTML and Jinja highlighting is working properly but when I try to format, the extension removes spaces for Jinja statements.

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