-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unnecessary spaces in PHP code #490
Comments
There probably is, but I'm not very familiar with the beautify-html script. The limitations of a non-parsing tokenizer really make handling templating syntax hairy. |
I believe the best option for this case, and other similar tickets here, is to allow beautify-html to leave the contents of Should someone come along with a PR to handle PHP, wonderful, but until then the ability to ignore it would be extremely useful. |
Agreed. Go for it! |
👏 Thank you! |
This is still happening for unclosed single quotes. Example: <a href='' onclick='doIt("<?php echo str_replace("'", "\\ ", $var); ?> "); '>
Test
</a>
<?php include_once $_SERVER['DOCUMENT_ROOT'] . "/shared/helpModal.php"; ?> Output: <a href='' onclick='doIt("<?php echo str_replace("' ", "\\ ", $var); ?> "); '>
Test
</a>
<?php include_once $_SERVER['DOCUMENT_ROOT '] . "/shared/helpModal.php"; ?> Note that |
@esetnik |
I have some html file with php insertions:
After beautifying I use to have this:
See that space right after
[
.Also code like this:
becomes:
and ofc breaks syntax.
I seem to be unable to find the way to solve this. Is there any?
The text was updated successfully, but these errors were encountered: