Twig
Twig copied to clipboard
First newline after verbatim and endverbatim tags is not removed
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