.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Shrapnel General (http://forum.shrapnelgames.com/forumdisplay.php?f=14)
-   -   [code] tag is broken (http://forum.shrapnelgames.com/showthread.php?t=34656)

lch May 11th, 2007 08:41 AM

[code] tag is broken
 
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

Re: [code] tag is broken
 
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

Re: [code] tag is broken
 
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

Re: [code] tag is broken
 
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

Re: [code] tag is broken
 
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

Re: [code] tag is broken
 
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...


All times are GMT -4. The time now is 05:43 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.