diff --git a/app/src/main/java/io/legado/app/utils/HtmlFormatter.kt b/app/src/main/java/io/legado/app/utils/HtmlFormatter.kt index 3bdd322ea..f7deb29a5 100644 --- a/app/src/main/java/io/legado/app/utils/HtmlFormatter.kt +++ b/app/src/main/java/io/legado/app/utils/HtmlFormatter.kt @@ -59,16 +59,16 @@ object HtmlFormatter { do{ val url = matcher.group(1)!! - val pos = url.indexOf(',') + val urlBefore = url.substringBefore(',') sb.append(keepImgHtml.substring(appendPos, matcher.start()).replace("\n","\n  ")) //非图片部分换行缩减 sb.append( "" ) appendPos = matcher.end()