Problem witht [code]blah[/code] ? - diyAudio
Go Back   Home > Forums > Site > Forum Problems

Forum Problems If there is a forum related problem please leave a message here so an Admin will see it.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 5th August 2008, 08:30 PM   #1
elseif is offline elseif  United States
diyAudio Member
 
Join Date: May 2008
Default 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:
Code:
      .------o--|___|---.    
      |      |          |    
      |      |  |\|     |    
      C|      --|-\     |    
      C|        |  >----o--> 
      C|     .--|+/          
      |      |  |/|          
     ===    ===              
     GND    GND
Any suggestions?
  Reply With Quote
Old 17th August 2008, 12:30 AM   #2
lineup is offline lineup  Sweden
diyAudio Member
 
lineup's Avatar
 
Join Date: Dec 2005
Location: the north
Default Re: Problem witht [code]blah[/code] ?

Quote:
Originally posted by elseif
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:
Code:
      .------o--|___|---.    
      |      |          |    
      |      |  |\|     |    
      C|      --|-\     |    
      C|        |  >----o--> 
      C|     .--|+/          
      |      |  |/|          
     ===    ===              
     GND    GND
Any suggestions?

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:
\r\n
while Unix based systems adds only
\n
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.


Regards Lineup
__________________
lineup
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code name:DD3875 Leolabs Chip Amps 6 23rd December 2006 12:58 PM
Speaker Code zincman Full Range 1 19th June 2005 06:25 PM
Anyone know the date code on these? K-amps Solid State 8 23rd February 2005 08:20 PM
dual ported, single port, blah blah blah SkinnyBoy Multi-Way 7 26th August 2004 03:06 PM
Bold problem in vB Code EC8010 Forum Problems 5 8th March 2003 02:33 AM


New To Site? Need Help?

All times are GMT. The time now is 02:30 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2