From 1a56e0a846adaf113d4cb371c76efce689d7d175 Mon Sep 17 00:00:00 2001 From: ag2s20150909 Date: Wed, 7 Apr 2021 00:33:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DfixPic=E4=B8=80=E6=AE=B5?= =?UTF-8?q?=E9=87=8C=E6=9C=89=E5=A4=9A=E4=B8=AAimg=E5=8F=AA=E4=BC=9A?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E7=AC=AC=E4=B8=80=E4=B8=AAimg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- epublib/src/main/java/me/ag2s/epublib/util/ResourceUtil.java | 1 + 1 file changed, 1 insertion(+) diff --git a/epublib/src/main/java/me/ag2s/epublib/util/ResourceUtil.java b/epublib/src/main/java/me/ag2s/epublib/util/ResourceUtil.java index 7c021fae1..d03018e26 100644 --- a/epublib/src/main/java/me/ag2s/epublib/util/ResourceUtil.java +++ b/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("