A lot of line breaks <br> in table

Found a bug? Tell us!!
Post Reply
jeep
Posts: 1
Joined: Tue Jul 31, 2007 5:21 pm

A lot of line breaks <br> in table

Post by jeep »

Since I have updated to serendipity 1.5.x i have had problems with articles contaning tables. The article looks good in the editor, but when published a lot of line breaks is added:

Code: Select all

<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td align="baseline"><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><table cellspacing="1" cellpadding="1" border="0" style="width: 200px; height: 250px; ">
<tbody>
<tr>
<td style="vertical-align: top; "><font face="verdana,arial,helvetica,sans-serif" size="2"><em>Placering</em></font></td>
<td align="left" style="vertical-align: top; "><em><font face="verdana,arial,helvetica,sans-serif" size="2">Namn</font></em></td>
....
</tr>
</tbody>
</table>
It looks terrible. I have tried all 1.5.x versions of s9y and Firefox/IE/Chrome different versions but always end up with the same result. This worked fine in 1.4.x version with the same setup/plugins.
Does any one have any idea how to fix this?

[SOLVED]
Ok, I solved disabling the NL2BR plugin. (found in old post)
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: A lot of line breaks <br> in table

Post by Timbalu »

To disable nl2br in generally isn't really an option, since you need these paragraphs (p) or linebreaks (br) in entries, comments, etc. You can disable it with the extended properties plugin for a single entry, or use the p option in generally, or use the new one found here http://board.s9y.org/viewtopic.php?f=2&t=17544 with a new stop br parsing tag <nl> </nl>.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Post Reply