• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed php code layout not kept

Adam Howard

Well-known member
#1
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.
 

Adam Howard

Well-known member
#2
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:

Mike

XenForo developer
Staff member
#4
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).