pull/1127/head
bushixuanqi 3 years ago
parent f1893a58d9
commit aff04860c5
  1. 2
      app/src/main/java/io/legado/app/utils/HtmlFormatter.kt

@ -36,7 +36,7 @@ object HtmlFormatter {
val urlBefore = url.substringBefore(',') val urlBefore = url.substringBefore(',')
val strBefore = keepImgHtml.substring(appendPos, matcher.start()) val strBefore = keepImgHtml.substring(appendPos, matcher.start())
sb.append( sb.append(
if(strBefore.isBlank()) strBefore else strBefore.replace("\n", "\n  ") //缩进图片之间的非空白段落 if(strBefore.isBlank()) '\n' else strBefore.replace("\n", "\n  ") //缩进图片之间的非空白段落
) )
sb.append( sb.append(
"<img src=\"${ "<img src=\"${

Loading…
Cancel
Save