From 2a4fbce07975225c3f93ce71ad14f5007ab4851e Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 3 May 2020 23:07:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/help/BookHelp.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/help/BookHelp.kt b/app/src/main/java/io/legado/app/help/BookHelp.kt index dafaaec8c..3c0fa644e 100644 --- a/app/src/main/java/io/legado/app/help/BookHelp.kt +++ b/app/src/main/java/io/legado/app/help/BookHelp.kt @@ -241,9 +241,10 @@ object BookHelp { val contents = arrayListOf() c.split("\n").forEach { val str = it.replace("^\\s+".toRegex(), "") + .replace("\r", "") if (contents.isEmpty()) { contents.add(title) - if (it != title && it.isNotEmpty()) { + if (str != title && it.isNotEmpty()) { contents.add("${ReadBookConfig.bodyIndent}$str") } } else if (str.isNotEmpty()) {