CODE block bug;converts to lowercase if 1st item

Thread Starter

SgtWookie

Joined Jul 17, 2007
22,230
I just found out that if one tries to use the CODE block as the first item in a post, everything within the CODE blocks is turned to lowercase!

To demonstrate this, I'll post text within CODE blocks here, and start the first reply to this thread with the same CODEd text:
Rich (BB code):
* TL072 OPERATIONAL AMPLIFIER "MACROMODEL" SUBCIRCUIT
* CREATED USING PARTS RELEASE 4.01 ON 06/16/89 AT 13:08
* (REV N/A)      SUPPLY VOLTAGE: +/-15V
* CONNECTIONS:   NON-INVERTING INPUT
*                | INVERTING INPUT
*                | | POSITIVE POWER SUPPLY
*                | | | NEGATIVE POWER SUPPLY
*                | | | | OUTPUT
*                | | | | |
.SUBCKT TL072    1 2 3 4 5
*
  C1   11 12 3.498E-12
  C2    6  7 15.00E-12
  DC    5 53 DX
  DE   54  5 DX
  DLP  90 91 DX
 

Thread Starter

SgtWookie

Joined Jul 17, 2007
22,230
Rich (BB code):
* tl072 operational amplifier "macromodel" subcircuit
* created using parts release 4.01 on 06/16/89 at 13:08
* (rev n/a)      supply voltage: +/-15v
* connections:   Non-inverting input
*                | inverting input
*                | | positive power supply
*                | | | negative power supply
*                | | | | output
*                | | | | |
.subckt tl072    1 2 3 4 5
*
  c1   11 12 3.498e-12
  c2    6  7 15.00e-12
  dc    5 53 dx
  de   54  5 dx
  dlp  90 91 dx
it may have something to do with the text in the code block being all uppercase.
 

Thread Starter

SgtWookie

Joined Jul 17, 2007
22,230
OK, I think that's the answer. When I typed the last line in the prior reply, it was in all uppercase.

If EVERYTHING in the post is UPPERCASE, it's automatically converted to lowercase, even WITHIN the code blocks.

This is not a good thing! Text within CODE blocks should never be altered!
 

Dave

Joined Nov 17, 2003
6,969
Rich (BB code):
* TL072 OPERATIONAL AMPLIFIER "MACROMODEL" SUBCIRCUIT
* CREATED USING PARTS RELEASE 4.01 ON 06/16/89 AT 13:08
* (REV N/A)      SUPPLY VOLTAGE: +/-15V
* CONNECTIONS:   NON-INVERTING INPUT
*                | INVERTING INPUT
*                | | POSITIVE POWER SUPPLY
*                | | | NEGATIVE POWER SUPPLY
*                | | | | OUTPUT
*                | | | | |
.SUBCKT TL072    1 2 3 4 5
*
  C1   11 12 3.498E-12
  C2    6  7 15.00E-12
  DC    5 53 DX
  DE   54  5 DX
  DLP  90 91 DX
 

Dave

Joined Nov 17, 2003
6,969
Thanks for the feedback Wook. This is a limitation of the "Prevent shouting" feature of the vBulletin software which converts posts with all capitalised letters into lower case. As we can see, it is not a particularly intelligent feature and does it to all letters including those in (what should be protected) CODE-tags.

Since "Shouting" is not a major problem at this point in time, I have disabled the feature so the CODE-tags should work as expected now (see above).

Dave
 

Thread Starter

SgtWookie

Joined Jul 17, 2007
22,230
Thanks a lot, Dave - I feel that it's a good interim fix.

"Shouting" is most definitely an annoyance, and should be suppressed. However, I feel that this CODE bug is something that should be addressed by the BBS authors.

Best regards,
Wook
 

Dave

Joined Nov 17, 2003
6,969
Thanks a lot, Dave - I feel that it's a good interim fix.
No problem.

"Shouting" is most definitely an annoyance, and should be suppressed. However, I feel that this CODE bug is something that should be addressed by the BBS authors.

Best regards,
Wook
From browsing the vB forums, it seems as though any formatting has the potential to break the "shouting-prevention" features, not just the CODE-tags. This feature is limited at best, and I am of the opinion that we can moderate (or even tolerate) the short amounts of SHOUTING on the forums, but the content of the CODE-tags is very important for the types of discussion had here at AAC; therefore the change is necessary and permanent until the feature actually works.

Dave
 
Top