<code> 'codifies' only until first blank line.

I was posting a comment. I have used <code> there, like this:

some text here:

<code>
// more text here

// and text again

Note empty lines before and after code. It was translated into this html:

<p>some text here</p>
<p><code><br />
// some more text here</p>

<p>// and text again<br />

Note how <code> is wrapped in <p>'s. I suppose because of this only first line of code block is displayed using 'code font'...

Using firefox 1.5 here.

Comments

Cvbge’s picture

If I just use <pre> instead of code, then it's not getting wrapped inside of p's and works.

magico’s picture

Status: Active » Fixed

I think there is something done about this.

Anonymous’s picture

Status: Fixed » Closed (fixed)