Skip to content

Conversation

carli2
Copy link
Contributor

@carli2 carli2 commented Sep 2, 2025

This is a repost. Last time, I implemented the page-break: avoid; behaviour in tables for mpdf (which got merged, that's fine) but I found a bug which i fix with this pull request:

When the page-break: avoid; block is too large for one page, mpdf used to spawn one per page, which is considered unwanted. This patch fixes this behaviour by detecting large page-break blocks and forcing a break at exactly the page limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant