Page 1 of 1

HTML Tables in Entries

Posted: Thu Sep 14, 2006 5:22 pm
by TopDawg
Hey folks. Thanks ahead of time for any help you can provide.

I have a website about my Cleveland Browns (Go Browns!!), and while posting an injury report for this weeks game in an HTML table, I have run across a slight problem

I have it set up as the following:

Code: Select all

<em><u>Cleveland Browns</u></em>
<table border="0">
<tr>
<td><b>Last Name</b></td>
<td><b>First Name</b></td>
<td><b>Position</b></td>
<td><b>Injury</b></td>
<td><b>Status</b></td>
</tr>
<tr>
<td>Dinkins</td>
<td>Darnell</td>
<td>TE</td>
<td>Hamstring</td>
<td>Out</td>
</tr>
<tr>
<td>Jurevicius</td>
<td>Joe</td>
<td>WR</td>
<td>Ribs</td>
<TD>Out</TD>
</TR>
<TR>
<TD>Eason</TD>
<TD>Nick</TD>
<TD>DE</TD>
<TD>Ankle</TD>
<TD>Doubtful</TD>
</TR>
<TR>
<TD>McCutcheon</TD>
<TD>Daylon</TD>
<TD>CB</TD>
<TD>Knee</TD>
<TD>Questionable</TD>
</TR>
<TR>
<TD>Russell</TD>
<TD>Brian</TD>
<TD>S</TD>
<TD>Elbow</TD>
<TD>Questionable</TD>
</TR>
</table>

<u><em>Cincinnati Bengals:</em></u>
<table border="0">
<tr>
<td><b>Last Name</b></td>
<td><b>First Name</b></td>
<td><b>Position</b></td>
<td><b>Injury</b></td>
<td><b>Status</b></td>
</tr>
<tr>
<td>Chapman</td>
<td>Antonio</td>
<td>WR</td>
<td>Groin</td>
<td>Out</td>
</tr>
<tr>
<td>Rucker</td>
<td>Frostee</td>
<td>DE</td>
<td>Shoulder</td>
<TD>Questionable</TD>
</TR>
<TR>
<TD>Adams</TD>
<TD>Sam</TD>
<TD>DT</TD>
<TD>Knee</TD>
<TD>Probable</TD>
</TR>
<TR>
<TD>Houshmandzadeh</TD>
<TD>T.J.</TD>
<TD>WR</TD>
<TD>Heel</TD>
<TD>Probable</TD>
</TR>
<TR>
<TD>Jones</TD>
<TD>Levi</TD>
<TD>T</TD>
<TD>Ankle</TD>
<TD>Probable</TD>
</TR>
<TR>
<TD>O'Neal</TD>
<TD>Deltha</TD>
<TD>CB</TD>
<TD>Knee</TD>
<TD>Probable</TD>
</TR>
</table>

<u><em>Key:</em></u>
Probable - 75% chance of playing
Questionable - 50% chance of playing
Doubtful - 25% chance of playing
Out - Will not play
After the table headings, there is a HUGE space before the table starts. Anyone know why this is and how to fix it?

Thanks again! :)

Posted: Thu Sep 14, 2006 5:32 pm
by judebert
Yup, we know what it is. (I need to start making a list of canned replies or something.)

The NL2BR plugin converts all linefeeds in your entry to <br /> tags in your HTML. Your table has a lot of linefeeds; each one is getting converted to a <br />, and thanks to the way HTML is set up, each gets interpreted as being outside the table.

If you remove the NL2BR plugin, your table will be where you expect. But then you'll have to go manually insert breaks where you want them in other entries.

You can also remove all those linefeeds from your table, mashing it into a single line.

If you're using a recent version of Serendipity, you should be able to turn off NL2BR in entries only in the NL2BR configuration. While your entries will still have to be updated, at least comments won't.

Finally, I believe Garvin actually updated things so you can turn off NL2BR in individual entries. (I use the plain-text editor and write HTML directly, so I don't have any direct experience with this.) It may require adding the "Extended Properties of Entries" plugin.

Posted: Thu Sep 14, 2006 5:34 pm
by TopDawg
"hey, juuuuuude..."

Sorry, had to.

Thanks a ton for your help!! I'll check that out. :D

Posted: Thu Sep 14, 2006 5:35 pm
by judebert
"Don't make it BAAAAdddd..."

Hey, wait, I do have canned responses! Here's something I wrote a while back on what NL2BR does to tables. It doesn't mention the possibility of configuration items, though.

Posted: Thu Sep 14, 2006 5:45 pm
by TopDawg
Yeah...sorry it was a repeated question. I didn't know what to search for other than "tables", and you can imagine how many pages of results there were.

I installed the Extended Entry Properties plugin and everything is working and looking great.

Thank you so much, again!