Open tenzap opened 2 years ago
I just saw that there is such a terrible <?php
inside the text of the echo
.
That is the culprit. If I remove it, then there is no indentation issue.
So the problem is linked to the presence of some <?php ?>
nested inside a another <?php ?>
in this case it is hidden in a PHP string
Description
Part of the PHP code changed while this wasn't expected: (it was indented, it lost indentation).
Command:
html-beautify -r -t --templating=php --end-with-newline=true -b expand "file"
Input
The code looked like this before beautification:
Expected Output
The code should have looked like this after beautification:
Actual Output
The code actually looked like this after beautification:
Steps to Reproduce
Environment
OS: linux debian 11
Settings
default + command:
html-beautify -r -t --templating=php --end-with-newline=true -b expand "file"