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

[Prettier plugin] Plain text empty forelse statement is missing whitespace #83

Closed Roardom closed 1 year ago

Roardom commented 1 year ago

A file containing a forelse loop with an empty statement where the empty is plain text (if it's wrapped in html tags it works)

@forelse ($items as $item)
    {{ $item }}
@empty
    No items
@endforelse

becomes

@forelse ($items as $item)
    {{ $item }}
@emptyNo items@endforelse

prettier-plugin-blade: 1.6.14 prettier: 2.8.8

JohnathonKoster commented 1 year ago

Improved in v1.6.15, with additional test coverage