Subtle code tag bug?

Status
Not open for further replies.

Smeghead

Ars Praefectus
4,725
Subscriptor
I couldn't find anything related in a search, so here goes...

I reckon there's a subtle bug in the way infopop formats text enclosed by code tags to preserve formatting. It appears that any lines that don't have any characters in them are thrown away, which is a bit of a pain.

For example, the following text is posted as 3 lines of text with blank lines separating them:
code:<HR>
Code:
line 1<P>line 2<P>line 3
To get this to work properly, I have to add a space to each blank line - this seems to force the parser into accepting them:
code:<HR>
Code:
line 1
 
line 2
 
line 3

Given the whole point of the code tags, this is a tad annoying. :D

One other thing - is it really necessary to have such big gaps between the delimiting lines and the enclosed text? :)
 
Status
Not open for further replies.