Below is the code I am working with:
{% for item in child.items %}
{%set ns.count = ns.count + 1%}
<tbody style="page-break-inside: avoid">
<tr style="page-break-inside: avoid">
<td style="border-bottom: 1px solid black; border-right: 1px solid black;border-left:1px solid black;">{{ns.count}}</td>
<td colspan="3" style=" white-space: normal; border-bottom: 1px solid black; border-right: 1px solid black;">{{item.sales_description}}</td>
<td style=" border-bottom: 1px solid black; border-right: 1px solid black;">85177090</td>
<td style=" border-bottom: 1px solid black; border-right: 1px solid black;">{{item.qty}}</td>
<td style=" border-bottom: 1px solid black; border-right: 1px solid black;">PC</td>
<td style="border-bottom: 1px solid black; border-right: 1px solid black;text-align:right;">{{item.rate}}</td>
<td style="border-bottom: 1px solid black; border-right: 1px solid black;text-align:right;">{{item.qty * item.rate}}</td>
<td style="border-bottom: 1px solid black; border-right: 1px solid black;text-align:right;">0</td>
<td style="border-bottom: 1px solid black; border-right: 1px solid black;text-align:right;">0.00</td>
<td style="border-bottom: 1px solid black; border-right: 1px solid black;text-align:right;">{{taxlist[0]}}</td>
<td style="border-bottom: 1px solid black; border-right: 1px solid black;text-align:right;">{{(item.qty * item.rate * taxlist[0])/100}}</td>
<td style="border-bottom: 1px solid black; border-right: 1px solid black;text-align:right;">{{taxlist[1]}}</td>
<td style="border-bottom: 1px solid black; border-right: 1px solid black;text-align:right;">{{(item.qty * item.rate * taxlist[1])/100}}</td>
</tr>
</tbody>
{% endfor %}
If a row breaks, it should be moved to the next page. However, I am facing issues with page breaks not working for <tr>
, <tbody>
. Can anyone provide assistance?