No blank trailing page

This commit is contained in:
jpirnay
2026-05-12 13:05:34 +02:00
parent 2e3b17a074
commit 528c65a6db
2 changed files with 16 additions and 4 deletions
@@ -149,6 +149,7 @@ class ChapterHtmlSlimParser final : public Print {
std::vector<std::pair<int, FootnoteEntry>> pendingFootnotes; // <wordIndex, entry>
int wordsExtractedInBlock = 0;
bool bionicReadingEnabled = false;
bool layoutFailed = false;
// Per-chapter caches: resolveStyle and parseInlineStyle are called for every HTML element;
// caching by (tag|classAttr) and styleAttr avoids repeated string operations and hash lookups.