Club PA 2.0 has arrived! If you'd like to access some extra PA content and help support the forums, check it out at
The image size limit has been raised to 1mb! Anything larger than that should be linked to. This is a HARD limit, please do not abuse it.
Our new Indie Games subforum is now open for business in G&T. Go and check it out, you might land a code for a free game. If you're developing an indie game and want to post about it, follow these directions. If you don't, he'll break your legs! Hahaha! Seriously though.
Our rules have been updated and given their own forum. Go and look at them! They are nice, and there may be new ones that you didn't know about! Hooray for rules! Hooray for The System! Hooray for Conforming!

CODE tags does not display odd numbers of spaces greater than one

ecco the dolphinecco the dolphin Registered User regular

I was just trying to visually format something using the
tags, and I've noticed that it doesn't seem to display odd numbers of spaces (greater than one).

For example:

ABC <- This has no space before the ABC
 BCD <- This has one space before the BCD
  CDE <- This has two spaces before the CDE
   DEF <- This *should* have three spaces before the DEF, but appears to have only two
    EFG <- This has four spaces before the EFG
     FGH <- This *should* have five spaces before the FGH, but appears to have only four
      GHI <- This has six spaces before the GHI
       HIJ <- This *should* have seven spaces, before appears to have only six

This also occurs if the spaces are in the middle of text:
ABCD <- No space
A CDE <- One space
A  DEF <- Two spaces
A   EFG <- Should be three, but appears to be two
A    FGH <- Four spaces
A     GHI <- Should be five, but appears to be four
A      HIJ <- Six spaces
A       IJK <- Should be seven, but appears to be six

I'm pretty sure that I've typed in the stated number of spaces.

It's no big deal, I'll just space things using periods for now, but was wondering if this was a known issue/a workaround is available.

Penny Arcade Developers at
ecco the dolphin on


  • EchoEcho Moderator mod
    edited June 2008
    Looks like the forum does silly stuff with the HTML.


    When HTML renders whitespace it trims down multiple spaces and renders them as one single space -- unless you use a non-breaking space, which says "use a space here goddamnit". Seems to be some SNAFU in the code that skips one nbsp at the end of odd numbers of whitespace.

    I thought that the code HTML tag was meant to preserve whitespace as-is, but I can't find anything about that anywhere in HTML specs.

    Echo on
    Echo wrote: »
    Let they who have not posted about their balls in the wrong thread cast the first stone.
  • BarrakkethBarrakketh Registered User regular
    edited June 2008
    Echo wrote: »
    I thought that the code HTML tag was meant to preserve whitespace as-is, but I can't find anything about that anywhere in HTML specs.

    That is what the pre HTML tag is for.

    EDIT: Edited to help alleviate confusion for people like Willeth ;-)

    Barrakketh on
    Rollers are red, chargers are blue....omae wa mou shindeiru
  • WillethWilleth Registered User regular
    edited June 2008
    This post is a failed test - thought that pre tags were bbcode, not HTML :P

    Willeth on
    @vgreminders - Don't miss out on timed events in gaming!
    @gamefacts - Totally and utterly true gaming facts on the regular!
Sign In or Register to comment.