Thread 'Forum : doesn't need {br}'

Message boards : Web interfaces : Forum : doesn't need {br}
Message board moderation

To post messages, you must log in.

AuthorMessage
ProfileAnanas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 4925 - Posted: 6 Jul 2006, 7:08:49 UTC
Last modified: 6 Jul 2006, 7:11:17 UTC

If I insert preformatted text, it does not need to have explicite line breaks.

Line1
Line2
Line3


results in

<pre>Line1<br>
Line2<br>
Line3</pre>

i.e. double linebreaks in the forum, one from the CR that is in the text, a second one from the HTML <br> tag
��u�
ID: 4925 · Report as offensive
ProfileAnanas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 15215 - Posted: 3 Feb 2008, 0:36:43 UTC

Still nof fixed, while in <pre> it does not need extra <br> tags at the end of the lines.
line1
line2

prints one extra empty line between line1 and line2
ID: 15215 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 15216 - Posted: 3 Feb 2008, 15:13:32 UTC - in response to Message 15215.  

It's hard to fix. The current conversion code is converting all newlines to <br>'s, IIRC before even converting the BBcode tags.
ID: 15216 · Report as offensive
ProfileAnanas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 15235 - Posted: 5 Feb 2008, 20:54:17 UTC - in response to Message 15216.  
Last modified: 5 Feb 2008, 20:55:52 UTC

It's hard to fix. The current conversion code is converting all newlines to <br>'s, IIRC before even converting the BBcode tags.


I know. What it would need is a flag "in_preformat" that switches the <br> stuff off while true or just removes the linefeeds and keeps only the <br>.

The code tag seems to be messed up too btw., at least in server version 14319 it doesn't work as supposed :

[img]http://boinc.berkeley.edu/dev/www_logo.gif[/img]


I would expect the BBCode conversion to be switched off while in "code" mode but that is not working, it shows me the link (I have set "show links instead of images").

Same for the preview of code, it shows just nothing except for the indent.
ID: 15235 · Report as offensive

Message boards : Web interfaces : Forum : doesn't need {br}

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.