Closed grieverrr closed 6 years ago
It's the expected behavior:
<p>
Indented text is raw text
</p>
However the following is expected to get what you want:
div.grid.pg-header__grid
div.pg-header__top
<span>test</span>
div.pg-header__city
Note that however Must be indented, else it's not inside pg-header__top.
I will inspect.
Right now, I have only this as work-around:
div.grid.pg-header__grid
div.pg-header__top
| <span>test</span>
div.pg-header__city
It is not really problem, but the thing is confusing is that the pugjs have different behavior in this case
I finally aligned this behavior on pugjs. You can test the next release of the lexer by running composer require phug/lexer=dev-master
(need a dev minimum stability), or you can cheat your composer.json to not change the minimum stability:
"require": {
"phug/lexer": "dev-master as 0.5.999",
},
When I will tag it as official release and test it via other project you'll be able to remove the lexer from your dependencies.
Fixed in lexer 0.5.27
Hello,
I encountered an issue with the following code:
I expected to get:
But I actually get:
Thanks!