Closed zepfietje closed 1 year ago
Would you be able to share more of the template that is causing the issue (note: there will be some situations where that error cannot be avoided, but will work to document those as they come up. A good example is starting/closing HTML tags or components inside conditions, etc.)? thanks!
Yeah it's inside a conditional. This is a minimal example which reproduces the issue:
@if (true)
{{-- format-ignore-start --}}
<div></div>
{{-- format-ignore-end --}}
@endif
Resolved in 1.3.0
for this situation 🙂
Great!
When ignoring a piece of Blade template and then running the formatter, I get the following error:
Edit: probably my fault as I added the comments around some attributes on a div, while it should wrap the entire div. However, when I wrap the entire div, its contents get replaced by
<BoRWTjjG3HrujYEnB />
.