View Full Version : Auto-deletion of extra spaces
Magmaniac
03-26-2008, 2:55 AM
Can this be removed? Or can there be an option to remove this somehow? I have often made posts where I wanted a separation between different things on the same line but when I clicked submit it auto deleted the spaces and made it incomprehensible.
Example:
I wanted to make a tree to help explain something so I typed something out like
overallthing
/ \
here overthere
/ \
overthereleft overthereright
But with the spacing deleted, that is totally incoherent.
This may just be me being picky, but this is the only issue I ever have with posting ability here, so I figured I would complain about it somewhere.
femoimal
03-26-2008, 6:51 AM
i side with magmaniac, it hinders the paragraph creation and the general organization of a post.
Thedutchjelle
03-26-2008, 8:43 AM
/\
here there
/ \
here there
You can use the Code tags to preserve your post lay out.
Black.Ice
03-26-2008, 12:45 PM
I came here to post the exact same thing that TDJ posted. Use code.
But I can side with Magmaniac. I don't really see a need to remove spaces in middle of a post. My guess is that the spaces are actually there, but they're not there because HTML only uses 1 space. You'd have to somehow convert them into nbsp, but yeah, just a guess.
Testing Testing.
Edit: Yeah, the spaces are actually there in the post, HTML ignores extra whitespace though. If you really wanted to, a quick fix would be to append sometime of eregi_replace that converts spaces into   (non breaking spaces), but that would be too much work because you'd have to count the number of spaces and then add the correct number of spaces.
In other words, it's probably too much of a pain to change, so just use code tags.
EDIT #2: I take that back. I found a quick way to fix it, but I doubt it'll be "fixed". Bug or feature, hehe.
Anyways, if AJ adds this code to the PHP post output section, it'd fix it:
$newPostWithSpaces = str_replace(" ", " ", $oldPostWithoutSpaces);
Uhm, right. Just use the code tag. Trying to use spaces without a fixed-width font is stupid anyway.
-Neo
Gunmonk
03-26-2008, 5:45 PM
EDIT #2: I take that back. I found a quick way to fix it, but I doubt it'll be "fixed". Bug or feature, hehe.
Anyways, if AJ adds this code to the PHP post output section, it'd fix it:
$newPostWithSpaces = str_replace(" ", " ", $oldPostWithoutSpaces);
Go!!! Aj Go!!!
Please... I think that this would be allot easier than having to use code every time.... but meh I'm just a blue boy nobody likes me
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.