in reply to pre tag

Which makes me wonder: why is the PRE tag actually among the allowed HTML tags?

Replies are listed 'Best First'.
Re^2: pre tag
by jeffa (Bishop) on Oct 18, 2004 at 15:33 UTC

    I am all for the <pre> tag here at the Monastery. Keeping with the spirit of Perl, there is more than one way to do it. I can post DATA with <pre> tags and CODE with <code> tags. Notice how the d/l code link only displays what i want it to display:

    <xml>
       <foo>bar</foo>
    </xml>
    
    print while <DATA>;

    Just my two cents. Plus, i'd have to fix a lot of broken nodes if you took away my <pre> tag. ;)

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    
Re^2: pre tag
by theorbtwo (Prior) on Oct 18, 2004 at 16:55 UTC

    There's a social reason, which I won't go into, as jeffa did a good job explaining it already. There's also a technical reason: we /first/ convert code tags to pre tags, /then/ we check for allowed tags. Twere it only easy to change...


    Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).