pug-php / pug

Pug template engine for PHP
https://www.phug-lang.com
MIT License
387 stars 42 forks source link

Interpolation at end of line in block tag strips trailing whitespace #156

Closed wolfgang42 closed 6 years ago

wolfgang42 commented 7 years ago

I encountered an issue with the following code:

blockquote.
    Well #[em hello]
    there, world!

I expected to get:

Well hello there, world!

But I actually get:

Well hellothere, world!

This appears to be the case for both tag and variable interpolation.

kylekatarnls commented 7 years ago

This is yet fixed in https://github.com/phug-php/phug so I will eventually fix it only after 3.0 release.

kylekatarnls commented 6 years ago

You can update to 3.0.0-alpha2, it should be fixed. Please don't hesitate to test the new pug-php 3 and give us your feedback.