-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Formatting Bug]: 1.38.4 seems to breaks when attributes are not separated by whitespace #878
Comments
Quick update - somehow we missed a detail on the first <button class="m-2.5 h-5 w-5 scale-125 cursor-pointer p-1" data-tippy-content="Modifier la prestation"
:class="isHovered && !currently_dragging ? 'opacity-100 delay-50' : 'opacity-0 delay-0'"x-data="{ tippyInstance: null }" x-init="tippyInstance = window.tippy($root)" x-on:click="tippyInstance.hide(); $dispatch('open-prestation-modal', {{ $task->id }})">
@include('svg.misc.tag')
</button>
Adding a space completely fixes the issue. If this is intended behaviour, this issue can be closed, and I apologize for the mishaps. |
Thanks @vorban for reporting the issue. |
When html tag attributes are not separated by space like class=""foo="", formatter will output unexpected result ✅ Closes: #878
Fixed at https://github.com/shufo/blade-formatter/releases/tag/v1.38.5 |
Version
1.38.4
Template before formatting
edit: i pasted the wrong clipboard, sorry.
Template after formatting
Expected Behaviour
The code above is not correctly formatted anymore.
This issue was noticed when we updated vscode-blade-formatter this morning to 0.23.3, which bumps your package from 1.38.3 to 1.38.4.
Behaviour was reproduced with a fresh install of 1.38.4 through
npm i -g
per your documentation, the diff output is attached.Relevant log output
The text was updated successfully, but these errors were encountered: