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()) {