Problem witht [code]blah[/code] ?
I would like to post an ascii image (op amp circuit). I attempt to use *code* stuff */code* ("*" = "[" and "]") to preserve the spacing and an extra line feed gets inserted after each line of text, thusly:
Re: Problem witht [code]blah[/code] ?
This is a fault of the software for this forum. ( http://www.vBulletin.com )
More precisely the php script used to handle your post.
The tag [ code] means that everything inside should be preserved just as entered, character for character.
Now Windows add 2 different chars for ONE linebreak:
while Unix based systems adds only
where \r = return and \n = newline
Both these corresponds to one HTML <br>
Now, somehow the script that handles posted stuff within the [ code ] tag
adds not only one <br>, but two <br><br> for each newline.
This could be easily fixed in a php script, that deals with Windows vs. Unix different ways
to announce one new line in post forms.
Probably, hopefully, vBulletin has fixed this, in later versions.
I would have a guess www.diyaudio.com uses some really old version.
Which by data age measurements is >= 5 years back dated version .. or even more.
|All times are GMT. The time now is 09:39 PM.|
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Copyright ©1999-2016 diyAudio