-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Moin,
On Sunday 11 February 2007 01:00:17 Adam Nielsen wrote:
between the <pre>-tags I do have HTML-coding. I had
- loosing text after the new section
- doubling of sections
- complete corruption
I've noticed that using the <pre> tag does sometimes cause the paragraph after the </pre> to disappear. Switching to <nowiki> seems to fix the problem, but you then need to escape any code by hand, e.g. using > as Tels suggested.
In normal HTML, even inside <pre> you need to escape, because otherwise the browser simple interpretes the HTML. Witness:
<pre> <font color="red">Red!</font> </pre>
in a normal HTML page. What happens if you enter things like <body>, <html> etc. is anybodies guess :)
However, it seems that Mediawiki always escapes "<" and ">" for you inside <pre>. Strange, I didn't know this. Maybe the escaping has a bug and does not always escape everything?
In any event you can also combine these two like so:
<pre><nowiki> <font color="red">Red!</font> </nowiki></pre>
Best wishes,
Tels
- -- Signed on Sun Feb 11 11:18:59 2007 with key 0x93B84C15. Get one of my photo posters: http://bloodgate.com/posters PGP key on http://bloodgate.com/tels.asc or per email.
"A Thaum is the basic unit of magical strength. It has been universally established as the amount of magic needed to create one small white pigeon or three normal-sized billiard balls." -- Terry Pratchett