-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Newline not preserved after tag when using line whitespace trimming #3162
Comments
The compiled template (which can be displayed on twigfiddle) shows that it is rendering a newline char. So this might actually be an issue of Twigfiddle itself not support an output starting with a newline char, or something like that. |
See https://twigfiddle.com/0nw355 for a fiddle having the same issue in the rendered output, while there is definitely a newline char being rendered. |
Oh, thanks. I should have checked with TwigPHP itself. |
Well, twigfiddle is a nice tool, but it might have bugs too. I reported it there |
Yes, thanks for that. The "Show raw result" button is quite confusing to me. Very nice tool though but I'll double-check with my local TwigPHP environment in the future. |
Hi there, Sorry about that guys, will fix the tool soon. Cheers, |
Consider the following template:
When rendered, we get:
foo
https://twigfiddle.com/oxixzf
But according to the documentation:
Shouldn't the newline after the
do
tag be preserved?The text was updated successfully, but these errors were encountered: