fabpot/Twig — Issue #587: [Coding style] consider adding a rule re indenting content within tags
Author: jonathaningram
Created: 2012-01-09 00:10:25+00:00
State: open

This may not be twig's concern, but I always find myself a bit lost when deciding whether to indent HTML within a tag. BTW, I'm not concerned with the actual indentation of the generated HTML (since I have the whitespace modifier anway), but more concerned with template readability.

E.g.

```jinja
{%- block content -%}

{%- for item in items -%}

...

{%- endfor -%}

{%- endblock -%}
```

or

```jinja
{%- block content -%}

{%- for item in items -%}

...

{%- endfor -%}

{%- endblock -%}
```