Click to See Complete Forum and Search --> : Unwanted spaces added to text inside [code] tags.


je_fro
08-11-2006, 08:49 PM
I've seen this a few times...
take a look at http://justlinux.com/forum/showthread.php?p=852736#post852736

the word exec is split into "exe c" when you use code tags.

je_fro
08-11-2006, 09:17 PM
#Thisisatestcomment.PleaseignorethislinebecauseI'm justseeingifthebrokenlinesabovearecausedbycolumnpo sition.

je_fro
08-11-2006, 09:17 PM
It still adds the scrollbar.
If you want to avoid the scrollbar, why add spaces instead of a \CRLF?
IMO, nothing inside [code] tags should have its formatting changed.

JPnyc
08-12-2006, 08:18 AM
But in the posts themselves, if not for those space the text wouldn't wrap and you could have huge unbroken lines of text, causing massive horizontal scrolling.

je_fro
08-12-2006, 08:25 AM
tttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttttttttttttttttttttttt tttttttt

je_fro
08-12-2006, 08:27 AM
I still don't understand...call me slow :D
But there's a huge massive scrollbar there. How does inserting those spaces prevent massive horizontal scrolling?

bwkaz
08-12-2006, 08:36 AM
How does inserting those spaces prevent massive horizontal scrolling? Here's how:

tttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttttttttttttttttttttttt tttttttttttttttttttttttttttttttttttttt

The piece of code that inserts the spaces doesn't understand that it should only do its space-insertion outside code tags, not everywhere. That code should probably be fixed to see whether the text is inside a code tag before splitting the words, if possible. ;)

je_fro
08-12-2006, 08:40 AM
Ahh I see, in the regular post...(heh...like jp said).
Well I for one consider it broken behavior in [code] tags...you should be able to copy and paste the text from inside them. I've seen someone beat their head in wondering why a script wouldn't work, and it turned out there was a space inserted that was very hard to see.

(yeah, okay....it was me.)