Fixed php code layout not kept

Adam Howard

Well-known member
IF you originally add php code in the raw editor and then switch back to the normal editor, the layout is not always kept

Good
PHP:
          <li><xen:avatar user="$user" size="s" text="{$user.username}" class="Tooltip" title="{$user.username}" /></li>

Bad
PHP:
<li><xen:avatar user="$user" size="s" text="{$user.username}" class="Tooltip" title="{$user.username}" /></li>

At least that is how it seems to be in the resource manager, so I assume the forum as well.
 
Firefox 23
Ubuntu 13.04 / 13.10

Firefox 24
Ubuntu 13.04 / 13.10

Did a simple, copy and paste if that means anything.... NOTE.... Coping and pasting is kind of the normal for the majority of the code shared. So if this happens to be a firefox issue, look into it please (don't just dismiss it as browser design, please)
 
Last edited:
This can also be reproduced by simply editing the post or hitting preview. Some how the spacing is lost.
 
Last edited:
It's specifically related to tabs - spaces should have been fine. Tabs needed to be converted into spaces (which is what's done anyway in the RTE).
 
Top Bottom