Fix pagebreak issue

This commit is contained in:
jpirnay
2026-05-03 23:01:12 +02:00
parent a33b417c72
commit d627b3f38f
@@ -742,7 +742,9 @@ void XMLCALL ChapterHtmlSlimParser::startElement(void* userData, const XML_Char*
return;
}
// Skip blocks with role="doc-pagebreak" and epub:type="pagebreak"
// removed skipping of doc-pagebreak and epub:type="pagebreak"
// as publishers sometimes wrap actual content in these tags
/*
if (atts != nullptr) {
for (int i = 0; atts[i]; i += 2) {
if (strcmp(atts[i], "role") == 0 && strcmp(atts[i + 1], "doc-pagebreak") == 0 ||
@@ -753,6 +755,7 @@ void XMLCALL ChapterHtmlSlimParser::startElement(void* userData, const XML_Char*
}
}
}
*/
// Detect internal <a href="..."> links (footnotes, cross-references)
// Note: <aside epub:type="footnote"> elements are rendered as normal content