diff --git a/crengine/src/epubfmt.cpp b/crengine/src/epubfmt.cpp index a983bf51b..388bae2ab 100644 --- a/crengine/src/epubfmt.cpp +++ b/crengine/src/epubfmt.cpp @@ -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; imediaType == "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 ); @@ -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));