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 ab3a60f04..b8787242b 100644 --- a/app/src/main/java/io/legado/app/help/ContentProcessor.kt +++ b/app/src/main/java/io/legado/app/help/ContentProcessor.kt @@ -65,7 +65,7 @@ class ContentProcessor(private val bookName: String, private val bookOrigin: Str } val contents = arrayListOf() content1.split("\n").forEach { - val str = it.replace("^[\\n\\s\\r]+".toRegex(), "") + val str = it.replace("^[\\n\\r]+".toRegex(), "").trim() if (contents.isEmpty()) { contents.add(title) if (str != title && str.isNotEmpty()) {