Stillat / blade-parser-typescript

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

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

Closed Roardom closed 10 months ago

Roardom commented 10 months 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 10 months ago

Improved in v1.6.15, with additional test coverage