diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt
index 494f628a4..59a074985 100644
--- a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt
+++ b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt
@@ -111,27 +111,26 @@ object ChapterProvider {
)
}
} else if (book.getImageStyle() != Book.imgStyleText) {
- var contentX = content.replace(AppPattern.imgPattern.toRegex(), "\n\$0\n").split("\n")
- val start = contentX.first() == "\n"
- val end = contentX.last() == "\n"
- if(start || end )contentX = contentX.subList(if(start) 1 else 0,if(end) contentX.size-1 else contentX.size )
- contentX.forEach { text ->
- if (!text.startsWith("
+ if (text.isNotBlank()) {
+ if (!text.startsWith("