Skip to content
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

Raw output is misleading with leading newlines #54

Closed
stof opened this issue Sep 26, 2019 · 1 comment
Closed

Raw output is misleading with leading newlines #54

stof opened this issue Sep 26, 2019 · 1 comment

Comments

@stof
Copy link
Contributor

stof commented Sep 26, 2019

See https://twigfiddle.com/oxixzf and https://twigfiddle.com/0nw355

Both of them are rendering an output with a leading newline. But the raw output panel strips this newline.
The panel showing the compiled template provides a proof that the newline is part of the Twig rendering.

This triggered a false bug report on Twig (the first fiddle is part of twigphp/Twig#3162, the second is my attempt at proving it is a twigfiddle issue instead).

@ninsuo
Copy link
Owner

ninsuo commented Sep 26, 2019

Hey Stof,

Thanks for the report, will fix it soon enough.

Cheers,
Alain

@ninsuo ninsuo closed this as completed in 280d139 Nov 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants