Enable leading whitespace stripping for blocks

This commit is contained in:
Kevin Brown 2020-05-08 23:17:40 -04:00 committed by Kevin
parent 41c23c37cc
commit ae85164da6
2 changed files with 4 additions and 3 deletions

View File

@ -55,7 +55,8 @@ block_end
block_open
=
@:"{%" {SP}*
| @:"{%" {SP}*
| {SP}* @:"{%-" {SP}*
;
block_close

View File

@ -31,10 +31,10 @@ across lines #}
The value will increase even more!
{% endif %}
{% endfor %}
{% macro textarea(name, value='', rows=10, cols=40) -%}
{%- macro textarea(name, value='', rows=10, cols=40) -%}
<textarea name="{{ name }}" rows="{{ rows }}" cols="{{ cols
}}">{{ value|e }}</textarea>
{% endmacro -%}
{%- endmacro -%}
{# comment contents
across lines #}
<ul>