[EPubGenerator] Avoid crashes due to bogus wrapping of content in table
Summary:
QTextDocument chokes badly when a some documents are wrapped inside
a table, returning e.g. a pagecount of -41292 afterwards.
On the downside, this removes any padding from the page. On the upside,
it removes any padding from the page.
BUG: 406738
BUG: 407140
CCBUG: 406116
Reviewers: Okular
Subscribers: okular-devel
Tags: Okular
Differential Revision: https://phabricator.kde.org/D20949