A bad code messed up text

Posted by Greven on Sat 02 Oct 2004 03:03 AM — 4 posts, 19,028 views.

Canada #0
I entered by mistake [/code] as the open [code] tag, and it made the text look quite wierd.

This is before the [/code].
This is after the closing [/code] tag with no opening one.
Amended on Sat 02 Oct 2004 03:07 AM by Greven
USA #1
test


I suspect that [/code] simply inserts "</font></code></pre>" into the text, which is why the font size would be changed.


EDIT:

Yes indeed, look at the HTML source:
<font size=2><pre><code><font size=2>test</font></code></pre>

To fix this it'd probably be enough to only do code replacement if they're properly formed i.e. [code]...[/code].
Amended on Sat 02 Oct 2004 08:37 AM by David Haley
Australia Forum Administrator #2
The forum does not do "smart" tag processing, it simply replaces [code] with one sequence, and [/code] with another, as Ksilyan suggested. Thus, if you close out of sequence it will be mildly wrongly displayed.
Canada #3
Not really an issue, I just wasn't sure if it had ever been noticed.