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

[Formatting Bug]: Wrong indent #941

Open
QuentiumYT opened this issue Sep 26, 2024 · 1 comment
Open

[Formatting Bug]: Wrong indent #941

QuentiumYT opened this issue Sep 26, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@QuentiumYT
Copy link

Version

1.41.1

Template before formatting

@if ($i >= 1)
    @break
  @endif

Template after formatting

@if ($i >= 1)
  @break
@endif

Expected Behaviour

It should keep the @break indented and not remove an indentation for the @endif.

As the following code using a variable works just fine

@if ($i >= 1)
  {{ $var }}
@endif

Relevant log output

No response

@QuentiumYT
Copy link
Author

Looks like it's also the same as #912 as well, maybe a global prevent would be nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants