Maybe some CSS could help out - in this case, it has to be browser specific :
pre {
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
Tiago | [reply] [d/l] |
pre tag
... is super wide, when I view it with Opera. It is okay with IE.
PRE tags do not stop being 'wide' when you switch browsers.
(I brought this up, as this happened quite often recently.)
Perhaps you turned on "auto" code wrapping recently? Please read Re^2: Monastery Gates page is too wide (causes), for my most recent discussion of this.
| [reply] |
Which makes me wonder: why is the PRE tag actually among the allowed HTML tags? | [reply] |
<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. ;)
| [reply] [d/l] [select] |
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).
| [reply] |
The problem is not only that it's wide, but also that the code can not be downloaded easily.
| [reply] |