1. 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

Discussion in 'Resolved Bug Reports' started by Adam Howard, Aug 29, 2013.

  1. Adam Howard

    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="$usersize="s" text="{$user.username}class="Tooltip" title="{$user.username}/></li>
    Bad
    PHP:
    <li><xen:avatar user="$usersize="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.
     
  2. Adam Howard

    Adam Howard Well-Known Member

    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: Aug 29, 2013
    AndyB likes this.
  3. Adam Howard

    Adam Howard Well-Known Member

    This can also be reproduced by simply editing the post or hitting preview. Some how the spacing is lost.
     
    Last edited: Aug 29, 2013
  4. Mike

    Mike XenForo Developer Staff Member

    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).
     
    Adam Howard likes this.
  5. Adam Howard

    Adam Howard Well-Known Member

    Thank you @Mike :)
     

Share This Page