+2
un-indented line after closing php tag
I have noticed a new bug introduced with the latest build 2181 which is rather annoying.
Suppose you were to type some PHP interlaced in some HTML, with some levels of indentation, as follows:
<div clas="level-1">
<div class="level-2">
<?php if(true): ?>
<p>true</p>
<?php elseif(false): ?>
<p>false</p>
<?php else: ?>
<p>???</p>
<?php endif; ?>
</div>
</div>
When you close the PHP after 'elseif', 'else', or 'endif', it un-indent the line automatically by removing one tab.
This doesn't happen for the 'if', but also happens when using 'endforeach' and endwhile', and probably other similar PHP condition keywords.
This bug doesn't occur if you were to use curly brackets '{ }' instead of semi-colons ':'.
Suppose you were to type some PHP interlaced in some HTML, with some levels of indentation, as follows:
<div clas="level-1">
<div class="level-2">
<?php if(true): ?>
<p>true</p>
<?php elseif(false): ?>
<p>false</p>
<?php else: ?>
<p>???</p>
<?php endif; ?>
</div>
</div>
When you close the PHP after 'elseif', 'else', or 'endif', it un-indent the line automatically by removing one tab.
This doesn't happen for the 'if', but also happens when using 'endforeach' and endwhile', and probably other similar PHP condition keywords.
This bug doesn't occur if you were to use curly brackets '{ }' instead of semi-colons ':'.
Сервис поддержки клиентов работает на платформе UserEcho
Hello!
Did somebody maybe find the solution/workaround for this behaviour? I have the same problem.
Thanks!
I am facing this issue also. Very annoying when write wordpress or magento code.