View Single Post
Old 3 Aug 2004, 07:04 PM   #4
Guest
 
Posts: n/a
4) Fixing random spaces/linebreaks
vBulletin may add random spaces and linebreaks when posting long words or [code] strings.
A workaround is to add (one or more) empty containers ("[i][/i]").

Example: Inserting the string (no spaces, no linebreaks) "Averylonglinewithmanywordsandnospacesmayhaverandomspacesandorlinebreaksinsertedbyvbulletin" to a [code] tag, results in:

Code:
Averylonglinewithmanywordsandnospacesmayhaverandomspacesandorlinebreaksinsertedbyvbulletin
A space and a linebreak were added.

After adding two empty italic containers:

Code:
Averylonglinewithmanywordsandnospacesmayhaverandomspacesandorlinebreaksinsertedbyvbulletin
Sometimes, more than one container is necessary. I use the containers to divide the long string to more or less equal parts.

Posting the same word, outside a [code] block, without empty
containers, also causes spaces and linebreaks to be added: "Averylonglinewithmanywordsandnospacesmayhaverandomspacesandorlinebreaksinsertedbyvbulletin".
  Reply With Quote