Fix pagebreak issue
This commit is contained in:
@@ -742,7 +742,9 @@ void XMLCALL ChapterHtmlSlimParser::startElement(void* userData, const XML_Char*
|
|||||||
return;
|
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) {
|
if (atts != nullptr) {
|
||||||
for (int i = 0; atts[i]; i += 2) {
|
for (int i = 0; atts[i]; i += 2) {
|
||||||
if (strcmp(atts[i], "role") == 0 && strcmp(atts[i + 1], "doc-pagebreak") == 0 ||
|
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)
|
// Detect internal <a href="..."> links (footnotes, cross-references)
|
||||||
// Note: <aside epub:type="footnote"> elements are rendered as normal content
|
// Note: <aside epub:type="footnote"> elements are rendered as normal content
|
||||||
|
|||||||
Reference in New Issue
Block a user