Update HtmlFormatter.kt

pull/1132/head
bushixuanqi 3 years ago committed by GitHub
parent a0e0dfd9ea
commit 1378ce67bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/io/legado/app/utils/HtmlFormatter.kt

@ -25,7 +25,7 @@ object HtmlFormatter {
val keepImgHtml = html.replace(wrapHtmlRegex, "\n") val keepImgHtml = html.replace(wrapHtmlRegex, "\n")
.replace(notImgHtmlRegex, "") .replace(notImgHtmlRegex, "")
.replace("\\n\\s*$|^\\s*\\n".toRegex(), "") .replace("\\n\\s*$|^\\s*\\n".toRegex(), "")
.replace("\\n\\s*\\n|\\n\\s*$|^\\s*\\n".toRegex(), "\n") .replace("\\n\\s*\\n".toRegex(), "\n")
var str = StringBuffer() var str = StringBuffer()
var endPos = 0 var endPos = 0

Loading…
Cancel
Save