I'm facing an issue with my HTML code where my tabular data is splitting across two pages when converting to PDF using puppeteer. I want to prevent the table from splitting across pages.
<table>
<tbody></tbody>
</table>
Despite trying various solutions found on Stack Overflow for this problem (https://github.com/puppeteer/puppeteer/issues/6366), I haven't been able to find a working solution. I attempted using page-break-inside: avoid in tbody/tr, but it didn't work. I am aware that this CSS property works on block-level elements, so I also tried wrapping the table in a div and applying the CSS to the div, but the table still breaks across pages. If anyone has a solution, please help. Thank you.