Skip to content
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

fix: 🐛 unexpected indent on break directive inside if directive #977

Merged
merged 1 commit into from
Feb 1, 2025

Conversation

shufo
Copy link
Owner

@shufo shufo commented Feb 1, 2025

Description

This PR fixes indenting problem that @break directive inside @if directive gets unexpected indenting.

e.g.

@if ($user)
    @break
@endif

Current behaviour after formatting.

@if ($user)
@break
@endif

Related Issue

Motivation and Context

It should not be indented like laravel's official blade description for @break directive.

@foreach ($users as $user)
    @if ($condition)
        @break
    @endif
@endforeach

How Has This Been Tested?

passing tests.

@shufo shufo merged commit 42259e8 into main Feb 1, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Formatting Bug]: Wrong indent when @break directive exists in @if directive
1 participant