homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Local / WebmasterWorld Community Center
Forum Library, Charter, Moderators: lawman

WebmasterWorld Community Center Forum

Spaces in code listings?

WebmasterWorld Administrator brett_tabke us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 254 posted 12:39 pm on Apr 3, 2001 (gmt 0)

>Why can't I get leading spaces in posts
>that use the "code" or "pre" commands?

The question has come up a few times before, so I thought I'd answer here.

It was a tough call to make. There are browsers that will feed all kinds of spaces with a text area. Even Netscape can feed unnecessary spaces. After doing this for awhile, you'll find browsers that will fed all sorts of unnecessary stuff in a textarea.

I've also found that almost every single post will include at least one occurrence of a double or triple space where it isn't required. Take that times 50k messages at the moment.

When I put in the leading space stripper, I went back through old posts with a routine to strip out spaces. At the time there was 4-5k posts, and the routine reclaimed close to half of meg, just from spaces.

Also, remember there are a) people who'd exploit the feature in ways you'd never expect and b) the board also has a option for html posting that is currently turned off. Those two factors are a new degree of difficulty in dealing with text area inputs.

I am working on a upgrade to the board software. I will be exploring special exceptions for (code) and (pre).


Global Options:
 top home search open messages active posts  

Home / Forums Index / Local / WebmasterWorld Community Center
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved