From d5fd3c3057d0b6c7b04911e4f1a4d32701ac385c Mon Sep 17 00:00:00 2001 From: ag2s20150909 Date: Thu, 17 Jun 2021 17:52:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0txt=E6=97=B6=E6=98=BE=E7=A4=BA=E4=B8=BA=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E4=B9=A6=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/model/localBook/EpubFile.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/model/localBook/EpubFile.kt b/app/src/main/java/io/legado/app/model/localBook/EpubFile.kt index bbcb6753b..062816b13 100644 --- a/app/src/main/java/io/legado/app/model/localBook/EpubFile.kt +++ b/app/src/main/java/io/legado/app/model/localBook/EpubFile.kt @@ -137,7 +137,7 @@ class EpubFile(var book: Book) { /*选择去除正文中的H标签,部分书籍标题与阅读标题重复待优化*/ var tag = Book.hTag - if (book.getUseReplaceRule()) { + if (book.getDelTag(tag)) { body.getElementsByTag("h1")?.remove() body.getElementsByTag("h2")?.remove() body.getElementsByTag("h3")?.remove()