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 95a612610..dafaaec8c 100644 --- a/app/src/main/java/io/legado/app/help/BookHelp.kt +++ b/app/src/main/java/io/legado/app/help/BookHelp.kt @@ -241,7 +241,12 @@ object BookHelp { val contents = arrayListOf() c.split("\n").forEach { val str = it.replace("^\\s+".toRegex(), "") - if (str.isNotEmpty()) { + if (contents.isEmpty()) { + contents.add(title) + if (it != title && it.isNotEmpty()) { + contents.add("${ReadBookConfig.bodyIndent}$str") + } + } else if (str.isNotEmpty()) { contents.add("${ReadBookConfig.bodyIndent}$str") } }