修复fixPic一段里有多个img只会替换第一个img

pull/935/head
ag2s20150909 4 years ago
parent f8d71f8009
commit 1a56e0a846
  1. 1
      epublib/src/main/java/me/ag2s/epublib/util/ResourceUtil.java

@ -62,6 +62,7 @@ public class ResourceUtil {
private static String createHtml(String title, String txt) {
StringBuilder body = new StringBuilder();
for (String s : txt.split("\\r?\\n")) {
//移除多余的开头结尾的空白字符,节省epub的体积
s = StringUtil.FixTrim(s);
if (s.length() != 0) {
if (s.contains("<img")) {

Loading…
Cancel
Save