CODE block bug;converts to lowercase if 1st item

Discussion in 'Feedback and Suggestions' started by SgtWookie, Sep 11, 2008.

  1. SgtWookie

    Thread Starter Expert

    Jul 17, 2007
    22,182
    1,728
    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:
    Code ( (Unknown Language)):
    1. * TL072 OPERATIONAL AMPLIFIER "MACROMODEL" SUBCIRCUIT
    2. * CREATED USING PARTS RELEASE 4.01 ON 06/16/89 AT 13:08
    3. * (REV N/A)      SUPPLY VOLTAGE: +/-15V
    4. * CONNECTIONS:   NON-INVERTING INPUT
    5. *                | INVERTING INPUT
    6. *                | | POSITIVE POWER SUPPLY
    7. *                | | | NEGATIVE POWER SUPPLY
    8. *                | | | | OUTPUT
    9. *                | | | | |
    10. .SUBCKT TL072    1 2 3 4 5
    11. *
    12.   C1   11 12 3.498E-12
    13.   C2    6  7 15.00E-12
    14.   DC    5 53 DX
    15.   DE   54  5 DX
    16.   DLP  90 91 DX
    17.  
     
  2. SgtWookie

    Thread Starter Expert

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

    Thread Starter Expert

    Jul 17, 2007
    22,182
    1,728
    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!
     
  4. Dave

    Retired Moderator

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

    Retired Moderator

    Nov 17, 2003
    6,960
    144
    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
     
  6. SgtWookie

    Thread Starter Expert

    Jul 17, 2007
    22,182
    1,728
    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
     
  7. Dave

    Retired Moderator

    Nov 17, 2003
    6,960
    144
    No problem.

    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
     
Loading...