Forum Bugs

table empty-cells: show with border-collapse: collapse

mischor
When a table is split across a page, and the split happens such that the last table row on a page before the split has an empty cell as the last cell in the row,

and you have empty-cells: show, and border-collapse: collapse,

that empty cell is drawn with the bottom and right border missing.

In my particular case, the failure I'm seeing is with a table which has just two columns.

-Marshall Schor
mikeday
Hi Marshall,

I am unable to reproduce this behaviour here, would you be able to post or email us a small sample document that demonstrates the problem?

Thanks,

Michael
mischor
Hi Michael - Here you go. The css file: (starts after the dashes line)

------------------------------
body {
margin-left: 16%;
margin-right: 8%;
font: 10.5pt/1.3 "Palatino Linotype", serif;
}

p { margin: 1.5em 0; } /* top/bot, left/right */


table {
border: 0.75pt solid black;
border-collapse: collapse;
empty-cells: show;
}

table th, table td {
text-align: left;
padding-right: 1ex;
padding-left: 1ex;
border: 0.75pt solid black;
}

table p {
margin: 0.1em 0; /* top/bot left/right */
}

/* ------------ Page -------------*/
@page {
margin: 27mm 16mm 27mm 16mm;
size: 8.5in 11in;
}

---------------- END OF CSS FILE ----------------
and the document file. Note that
the <p>&nbsp;</p> lines were adjusted to
cause the page boundary to break right at the
right spot. (starts after the dashed line)
------------------------------------------------------
<html>
<body>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>

<table>
<tr>
<td>
<p>Chapter</p>
</td>
<td>
<p>Description</p>
</td>
</tr>
<tr>
<td>
<p>Overviews</p>
</td>
</tr>
<tr>
<td>
<p><i>topic
(This Chapter)</i></p>
</td>
<td>
<p>blah etc blah etc blah etc blah etc blah etc
set.</p>
<p></p>
<p>xxxxxxxxx x xxxxxxxxxxxxx xxxxxxxxxxx xxxxxxxxxx xxxxxxxx </p>
<p></p>
<p>xxxxxxx xxxxxxxxx xxxx</p>
<p></p>
<p>xxxxxxxxxxxxxxxx xxx xxxxxxxxx xxxxxxxx xxx xxxxxxxxxxx xxxxxxxx xxxxxxxx xxxxxx xxxxxxxx</p>
</td>
</tr>
</table>
</body>
</html>
------------------------ END OF DOCUMENT FILE ---------------
mikeday
Thanks, I see the issue now.

The simplest workaround for the missing border is to add an explicit empty table cell element, like this: <td></td> which should make the border come back.

We will investigate the issue for the next release of Prince.