修复导出epub缺字

pull/949/head
ag2s20150909 4 years ago
parent 11b1e694a4
commit fc8e528e63
  1. 4
      app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt

@ -243,10 +243,8 @@ class CacheViewModel(application: Application) : BaseViewModel(application) {
BookHelp.getContent(book, chapter).let { content ->
var content1 = fixPic(epubBook, book, content ?: "null", chapter)
content1 = contentProcessor
.getContent(book, chapter.title, content1, false, useReplace)
.getContent(book, "", content1, false, useReplace)
.joinToString("\n")
.replaceFirst(chapter.title, "")
epubBook.addSection(
chapter.title,
ResourceUtil.createHTMLResource(chapter.title, content1)

Loading…
Cancel
Save