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]: Incorrect formatting when using textarea #873

Open
KarimElsayad247 opened this issue Sep 23, 2024 · 0 comments
Open

[Formatting Bug]: Incorrect formatting when using textarea #873

KarimElsayad247 opened this issue Sep 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@KarimElsayad247
Copy link

Platform

Linux

Template before formatting

<textarea class="elm"
  name="inner_group[{{ $i }}][{{ $c->attribute }}{{ $j }}]"
>
  @if (explode('|', $values) != null && isset(explode('|', $values)[$j - 1]))
    {{ explode('|', $values)[$j - 1] }}
  @endif
</textarea>

Template after formatting

<textarea class="elm"
  name="inner_group[{{ $i }}][{{ $c->attribute }}{{ $j }}]"
>
  @if (explode('|', $values) != null && isset(explode('|', $values)[$j - 1]))
{{ explode('|', $values)[$j - 1] }}
@endif
</textarea>

Expected Behaviour

@endif and its preceeding line always get pushed to 0 indentation. this happens regardless of indentation level. e.g. this also

                          <textarea class="elm"
                            name="inner_group[{{ $i }}][{{ $c->attribute }}{{ $j }}]"
                          >
                            @if (explode('|', $values) != null && isset(explode('|', $values)[$j - 1]))
                              {{ explode('|', $values)[$j - 1] }}
                            @endif
                          </textarea>

becomes this

                          <textarea class="elm"
                            name="inner_group[{{ $i }}][{{ $c->attribute }}{{ $j }}]"
                          >
                            @if (explode('|', $values) != null && isset(explode('|', $values)[$j - 1]))
{{ explode('|', $values)[$j - 1] }}
@endif
                          </textarea>

Relevant log output

No response

@KarimElsayad247 KarimElsayad247 added the bug Something isn't working label Sep 23, 2024
@KarimElsayad247 KarimElsayad247 changed the title [Formatting Bug]: [Formatting Bug]: Incorrect formatting when using textarea Sep 23, 2024
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