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

a tag gets indented too far inside a @if tag #110

Open
RobertBlaauwendraad opened this issue Aug 9, 2024 · 1 comment
Open

a tag gets indented too far inside a @if tag #110

RobertBlaauwendraad opened this issue Aug 9, 2024 · 1 comment

Comments

@RobertBlaauwendraad
Copy link

With

[*.blade.php]
indent_size = 2

This correctly indented snippet:

 @if ($hasWhatsappButton)
   <a
     href="{{ get_field('whatsapp_contact_link', 'option') }}"
     target="_blank"
     class="btn--contact bg-whatsapp"
   >
     <i class="icon icon-whatsapp"></i>
   </a>
 @endif

Becomes:

  @if ($hasWhatsappButton)
      <a
        href="{{ get_field('whatsapp_contact_link', 'option') }}"
        target="_blank"
        class="btn--contact bg-whatsapp"
      >
        <i class="icon icon-whatsapp"></i>
      </a>
  @endif
@JohnathonKoster
Copy link
Contributor

I am unable to reproduce with a prettierrc or .format.json.file. Can you provide the configuration files you are using?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants