View Full Version : [code] tag is broken
lch
May 11th, 2007, 08:41 AM
The [code] tag is broken. It should just translate the [code] environment to a <pre> environment and it does that if you create a new post with [code] tags in it. But if you edit your post and want to submit it again, the forum software then prefixes every line of HTML output for the forum post with a <br/> tag, too, for unknown reasons. Together with the newlines encountered inbetween the <pre> tags this results in double newlines in the browser and makes the text rather unreadable because it's stretched out of proportions. Please remove the buggy bogus code which adds these useless <br/> tags all over the place.
lch
May 11th, 2007, 08:57 AM
Demo of [code] after an edit:
<font class="small">Code:</font><hr /><pre>
Nor dread nor hope attend
A dying animal;
A man awaits his end
Dreading and hoping all;
Many times he died,
Many times rose again.
A great man in his pride
Confronting murderous men
Casts derision upon
Supersession of breath;
He knows death to the bone
Man has created death.
</pre><hr />
lch
May 11th, 2007, 08:58 AM
Demo of [code] from a new post
<font class="small">Code:</font><hr /><pre>
Nor dread nor hope attend
A dying animal;
A man awaits his end
Dreading and hoping all;
Many times he died,
Many times rose again.
A great man in his pride
Confronting murderous men
Casts derision upon
Supersession of breath;
He knows death to the bone
Man has created death.
</pre><hr />
lch
May 11th, 2007, 08:59 AM
To see the non-existing difference of the above posts, click on the "quote" button for both of them.
Edi
May 11th, 2007, 02:33 PM
The same thing happens when you quote somebody's private message in your reply to them, it adds an extra newline for every line break.
lch
May 12th, 2007, 06:20 AM
Yep, quotes get stretched every time when you reply to a PM, too, which can get quite long when you reply to each other a dozen times...
vBulletin® v3.8.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.