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

Allow disabling insertion of empty lines after conditionals #114

Open
bakerkretzmar opened this issue Sep 6, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@bakerkretzmar
Copy link

This plugin enforces/inserts an empty line after Blade conditionals:

{{-- Before --}}
<p>Something</p>
@if (true)
    <p>True</p>
@endif
<p>Something else</p>

{{-- After --}}
<p>Something</p>
@if (true)
    <p>True</p>
@endif

<p>Something else</p>

I would love the option to disable this behaviour. Call me crazy, but sometimes I just want everything bunched up together.

This spacing isn't necessary, it doesn't seem to be a universal Prettier/Blade convention, and it isn't applied to all directives or all situations (e.g. doesn't insert spacing before the conditional, as seen above).

@JohnathonKoster JohnathonKoster added the enhancement New feature or request label Sep 6, 2024
@JohnathonKoster
Copy link
Contributor

Thanks for the feedback. Yea, its not a convention, just a side effect of how the formatter was implemented. I'll give it some thought! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants