Twig icon indicating copy to clipboard operation
Twig copied to clipboard

First newline after verbatim and endverbatim tags is not removed

Open ericmorand opened this issue 6 years ago • 0 comments

The documentation of Twig says:

The first newline after a template tag is removed automatically (like in PHP).

But this does not work with the verbatim and endverbatim tag:

bar{% verbatim %}
foo{% endverbatim %}
bar
bar{% autoescape %}
foo{% endautoescape %}
bar

=>

bar
foo
bar
barfoobar

https://twigfiddle.com/vtsetc

ericmorand avatar Jun 24 '19 12:06 ericmorand