pull/1127/head
bushixuanqi 3 years ago
parent d9325a7aab
commit e3da3d0046
  1. 4
      app/src/main/java/io/legado/app/utils/HtmlFormatter.kt

@ -55,9 +55,7 @@ object HtmlFormatter {
sb.append("<img src=\"${NetworkUtils.getAbsoluteURL(redirectUrl,matcher.group(1)!!)}\">") sb.append("<img src=\"${NetworkUtils.getAbsoluteURL(redirectUrl,matcher.group(1)!!)}\">")
appendPos0 = matcher.end() appendPos0 = matcher.end()
} }
strBefore = if (appendPos0 < strBefore.length) { strBefore = if (appendPos0 < strBefore.length) strBefore.substring(appendPos0, strBefore.length) else ""
strBefore.substring(appendPos0, strBefore.length).replace("\n", "\n  ") //缩进图片之后的非空白段落
} else ""
} }
sb.append( sb.append(

Loading…
Cancel
Save