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

Formatting of empty block statements doesn't stabilize on first run #69

Open
j2L4e opened this issue Nov 16, 2020 · 2 comments
Open

Formatting of empty block statements doesn't stabilize on first run #69

j2L4e opened this issue Nov 16, 2020 · 2 comments

Comments

@j2L4e
Copy link

j2L4e commented Nov 16, 2020

An empty block statement needs two prettier runs to stabilize. It should produce a stable version of the code on first run.

Original:

{% block foo %}{% endblock %}

After first run:

{% block foo %}
{% endblock %}

After 2 or more runs (stable):

{% block foo %}

{% endblock %}
@j2L4e j2L4e changed the title Formatting of empty {% block foo %} doesn't stabilize on first run Formatting of empty block statements doesn't stabilize on first run Nov 16, 2020
@rellafella
Copy link

rellafella commented Feb 21, 2021

Is there a way to set it so that it stays as:

{% block foo %}
{% endblock %}

@luchidalgo
Copy link

Also, can we leave empty blocks on a single line ?

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

3 participants