Stillat / blade-parser-typescript

A Laravel Blade parser, compiler, and static analyzer written in TypeScript.
https://stillat.com
MIT License
90 stars 3 forks source link

Multiple echoes on single line #42

Closed zepfietje closed 1 year ago

zepfietje commented 1 year ago
Input
<div>
    {{ $foo }}{{ $bar }}
</div>

Output

<div>
    {{ $foo }}
    {{ $bar }}
</div>

The echo statements are put on multiple lines, leading to actual issues in the HTML since whitespace is added when they're not right next to each other. Would expect the input to remain unchanged after formatting in this case.

JohnathonKoster commented 1 year ago

Behavior improved in 1.2.1 🙂

zepfietje commented 1 year ago

Yes, thanks!