When converting HTML to PDF I would like to prevent page break between 2 logically grouped table rows. Here is an example:
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<!-- PAGE BREAK SHOULD NOT HAPPEN HERE -->
<tr class="sub-row">
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
</tr>
These are 2 table rows, but they relate to the same data and I want to keep them formatted as such. I tried a couple of CSS options, but none of them made any difference. It seems that the engine will only register page-break properties on the paragraph element and I tried inserting a paragraph with the page-break after avoid property before the sub-row and it did not behave as expected either.