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

Formatter automatically adds space around "-" inside HTML attributes #70

Closed ralphjsmit closed 1 year ago

ralphjsmit commented 1 year ago

A few days ago @cheesegrits installed the plugin on of my projects. Really liking it so far!

One thing I noticed (which actually broke one of my packages 🙃) is that it added a space around the "-" in an HTML attribute, see line 60:

Space

Hereby the original code:

<div
    class="relative group"
    @if($isMultiple && $isReorderable)
        x-sortable-handle
     x-sortable-item="image-{{ $image->id }}"
     @endif
>

(I also would have liked if both x-sortable-* directives would be indented in the same way but perhaps related to the other recent issues from Hugh.)

Would be great if this could be fixed. Thanks!

JohnathonKoster commented 1 year ago

Resolved in 1.6.9 🙂

ralphjsmit commented 1 year ago

Thanks!