MalteJanz / ludtwig

Linter / Formatter for Twig template files which respects HTML and your time.
MIT License
28 stars 3 forks source link

twig-block-line-breaks rule on top level in file #103

Closed MalteJanz closed 9 months ago

MalteJanz commented 9 months ago

Currently there is no empty line suggestion between twig blocks on the top level.

Example:

{% block first %}
    first 
{% endblock %}
{% block second %}
    second
{% endblock %}

Should be formatted like:

{% block first %}
    first 
{% endblock %}

{% block second %}
    second
{% endblock %}

This is already the case lower in the syntax tree (not top level in the file)