You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take a look at {% %} tags in the Twig template. There is plenty of redundant whitespace which breaks indenting of the final HTML. For example the space between {% line 7 %}, {% if true %} and {% block some_indented_block %}`.
It would be much better if the {% %} tags were on their own lines and not indented at all:
I'm using the Symfony bundle and Twig. There is a short example of the whitespace problem:
HAML template:
Generated Twig template:
Final HTML (
#page_content_text
is from the parent template):Take a look at
{% %}
tags in the Twig template. There is plenty of redundant whitespace which breaks indenting of the final HTML. For example the space between{% line 7 %}
,{% if true %}
and {% block some_indented_block %}`.It would be much better if the
{% %}
tags were on their own lines and not indented at all:Which will produce much better HTML:
The text was updated successfully, but these errors were encountered: