-
-
Notifications
You must be signed in to change notification settings - Fork 8
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]: if else endif removes the trailing space inline and breaks the blade #204
Comments
@tonypartridge |
i also have this issue. after formatting: |
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 |
@aryala7 {
"useLaravelPint": true,
"classStrings": {
"enabled": false
},
"pintCacheEnabled": false,
"customIfs": [],
"formatDirectivePhpParameters": false,
"formatDirectiveJsonParameters": false,
"formatInsideEcho": false,
"spacesAfterDirective": 1,
"spacesAfterControlDirective": 3,
"phpOptions": {
"phpVersion": "8.2"
}
}
Please paste entire template (remove secret value if needed) and config cause I could not reproduce it. |
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 |
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 |
To anyone reading this, I experienced the same issue in PHPStorm, and excluding PHPStorm's default blade formatting fixed this issue for me. It looks like this is not an issue with the prettier-plugin-blade package. To disable default blade formatting, go to Editor -> Code Style and add |
Version
1.5.6
Template before formatting
Template after formatting
Expected Behaviour
class="@if($amount > 0) py-2 @else py-4 px-4 @endif relative"
Relevant log output
No response
The text was updated successfully, but these errors were encountered: