From 37a441ff64f1e61b8eb8c672f5731732b2bb5266 Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 14 Sep 2021 08:31:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=AD=A3=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/help/ContentProcessor.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/ContentProcessor.kt b/app/src/main/java/io/legado/app/help/ContentProcessor.kt index 0a0b67c07..b9c5f1d1e 100644 --- a/app/src/main/java/io/legado/app/help/ContentProcessor.kt +++ b/app/src/main/java/io/legado/app/help/ContentProcessor.kt @@ -63,7 +63,7 @@ class ContentProcessor private constructor( ): List { //去除无效内容 var mContent = content.trimStart { - it.code <= 0x20 || it == ' ' || it == ',' || it == ',' || it == ',' + it.code <= 0x20 || it == ' ' || it == ',' || it == ',' } //去除书名 if (mContent.startsWith(book.name)) { @@ -76,7 +76,7 @@ class ContentProcessor private constructor( } //去除无效内容 mContent = mContent.trimStart { - it.code <= 0x20 || it == ' ' || it == ',' || it == ',' || it == ',' + it.code <= 0x20 || it == ' ' || it == ',' || it == ',' } //去除标题 if (mContent.startsWith(chapter.title)) { @@ -84,7 +84,7 @@ class ContentProcessor private constructor( } //去除无效内容 mContent = mContent.trimStart { - it.code <= 0x20 || it == ' ' || it == ',' || it == ',' || it == ',' + it.code <= 0x20 || it == ' ' || it == ',' || it == ',' } if (includeTitle) { //重新添加标题