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

Bugfix: Make sure that empty block will have empty line in between #85

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

zackad
Copy link
Owner

@zackad zackad commented Nov 21, 2024

Close GH-84

Example:

{% block content %}{% endblock %}

Will be printed as:

{% block content %}

{% endblock %}

@zackad zackad force-pushed the GH-84/print-empty-block branch from d1bd7ae to b000dff Compare November 21, 2024 04:42
Close GH-84

Example:
```twig
{% block content %}{% endblock %}
```

Will be printed as:
```twig
{% block content %}

{% endblock %}
```
@zackad zackad force-pushed the GH-84/print-empty-block branch from b000dff to e5c678c Compare November 21, 2024 04:43
@zackad zackad requested a review from rellafella November 21, 2024 04:44
@rellafella
Copy link
Collaborator

🎉 this has bugged me for years!

@rellafella rellafella closed this Nov 22, 2024
@rellafella rellafella reopened this Nov 22, 2024
@zackad zackad merged commit e5c678c into master Nov 22, 2024
6 checks passed
@zackad zackad deleted the GH-84/print-empty-block branch November 22, 2024 07:05
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

Successfully merging this pull request may close these issues.

Empty blocks get formatted twice
2 participants