blade-formatter icon indicating copy to clipboard operation
blade-formatter copied to clipboard

[Formatting Bug]: Wrong indent

Open QuentiumYT opened this issue 1 year ago • 1 comments

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 avatar Sep 26 '24 09:09 QuentiumYT

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

QuentiumYT avatar Sep 26 '24 10:09 QuentiumYT

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

github-actions[bot] avatar Nov 26 '24 02:11 github-actions[bot]

Still an issue

QuentiumYT avatar Nov 26 '24 19:11 QuentiumYT

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

github-actions[bot] avatar Jan 27 '25 01:01 github-actions[bot]

Still an issue

QuentiumYT avatar Jan 27 '25 08:01 QuentiumYT

@QuentiumYT Sorry for late reply. This issue is fixing in #977.

shufo avatar Feb 01 '25 19:02 shufo