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

How to disable triming spaces from <?= ... ?> to <?=...?> in short echo tag? #153

Open
IkotikI opened this issue Jul 16, 2024 · 2 comments

Comments

@IkotikI
Copy link

IkotikI commented Jul 16, 2024

So, on save in short echo tags <?= ... ?> spaces before and after trimmed after formatting.
Example:
Before: <?= $name ?>
After: <?=$name?>

How to disable it? In normal tags <?php ... ?> nothing trimmed, and that's what I need.

@driade
Copy link

driade commented Jul 16, 2024

Hi @IkotikI. I'm sorry I don't think you can avoid do this, formatting the spaces this way it's in the inner part of the rules, not an special one you can active/deactivate

@driade
Copy link

driade commented Aug 8, 2024

Thus, to be more clear, I should create an special rule to make the formatter behave this way, something you could opt in as "KeepSpaceAfterShortOpen", that would run after "ResizeSpaces".

At this moment I'm limiting the number of new rules to be created, as they're time consuming. My goal is to fix errors in the current ones.

Thanks!

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

No branches or pull requests

2 participants