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]: @elsecan blade directive is ignored #792

Closed
lrakauskas opened this issue Nov 8, 2023 · 1 comment
Closed

[Formatting Bug]: @elsecan blade directive is ignored #792

lrakauskas opened this issue Nov 8, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@lrakauskas
Copy link

Platform

Windows

Template before formatting

<html>
  <head></head>
  <body>
    @can('test')
    a
    @elsecan
    b
    @endcan
  </body>
</html>

Template after formatting

<html>
  <head></head>
  <body>
    @can('test')
      a
      @elsecan
      b
    @endcan
  </body>
</html>

Expected Behaviour

@elsecan should be aligned together with whole @can block. Currently it's treated as regular text

<html>
  <head></head>
  <body>
    @can('test')
      a
    @elsecan
      b
    @endcan
  </body>
</html>

Relevant log output

No response

@lrakauskas lrakauskas added the bug Something isn't working label Nov 8, 2023
@lrakauskas
Copy link
Author

Nevermind, @elsecan is wrong syntax, it's supposed to be @elsecan('xxx') which works just fine :)

@lrakauskas lrakauskas closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2023
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