Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crengine/src/epubfmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ bool ImportEpubDocument( LVStreamRef stream, ldomDocument * m_doc, LVDocViewCall
int fragmentCount = 0;
size_t spineItemsNb = spineItems.length();
for ( size_t i=0; i<spineItemsNb; i++ ) {
if (spineItems[i]->mediaType == "application/xhtml+xml") {
if (spineItems[i]->mediaType == "application/xhtml+xml" || spineItems[i]->mediaType == "text/html") {
lString32 name = LVCombinePaths(codeBase, spineItems[i]->href);
lString32 subst = cs32("_doc_fragment_") + fmt::decimal(i);
appender.addPathSubstitution( name, subst );
Expand All @@ -1360,7 +1360,7 @@ bool ImportEpubDocument( LVStreamRef stream, ldomDocument * m_doc, LVDocViewCall
lastProgressPercent = percent;
}
}
if (spineItems[i]->mediaType == "application/xhtml+xml") {
if (spineItems[i]->mediaType == "application/xhtml+xml" || spineItems[i]->mediaType == "text/html") {
lString32 name = LVCombinePaths(codeBase, spineItems[i]->href);
{
CRLog::debug("Checking fragment: %s", LCSTR(name));
Expand Down