We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.8.12
<div @php($counter = 1) > <x-share> @if ($counter) {{-- --}} @endif </x-share> </div>
@php($counter = 1)
<div @php($counter = 1) >
<x-share>
</x-share>
>
This test is done with a fresh Prettier VSCode plugin & no config rules aside from the essential to make this plugin work:
{ "plugins": ["@shufo/prettier-plugin-blade"], "overrides": [ { "files": ["*.blade.php"], "options": { "parser": "blade" } } ] }
@php $counter = 1 @endphp
@if
x-share
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
Sorry, something went wrong.
fix: 🐛 incorrect format when inline directive and endif exists
2010b5d
refs: shufo/prettier-plugin-blade#199. It occurs when inlined directive like `@php` followed by `@if` ~ `@endif` directive
Fixed at https://github.com/shufo/prettier-plugin-blade/releases/tag/v1.13.4. Thanks for your patience!
shufo
theMosaad
Successfully merging a pull request may close this issue.
Version
1.8.12
Template before formatting
Template after formatting
Expected Behaviour
Expected
@php($counter = 1)
not to wrap and stay in the same line like<div @php($counter = 1) >
.<x-share>
to have the same indent as</x-share>
.@php($counter = 1)
and the closing bracket>
to be removed.Config
This test is done with a fresh Prettier VSCode plugin & no config rules aside from the essential to make this plugin work:
Workarounds
@php($counter = 1)
with@php $counter = 1 @endphp
.@if
statement inside thex-share
component.Relevant log output
The text was updated successfully, but these errors were encountered: