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 b9425b4c8..7c021fae1 100644 --- a/epublib/src/main/java/me/ag2s/epublib/util/ResourceUtil.java +++ b/epublib/src/main/java/me/ag2s/epublib/util/ResourceUtil.java @@ -29,7 +29,8 @@ import me.ag2s.epublib.epub.EpubProcessorSupport; public class ResourceUtil { /** * 快速创建HTML类型的Resource - * @param title 章节的标题 + * + * @param title 章节的标题 * @param string 章节的正文 * @return 返回Resource */ @@ -42,9 +43,10 @@ public class ResourceUtil { /** * 快速创建HTML类型的Resource - * @param title 章节的标题 + * + * @param title 章节的标题 * @param string 章节的正文 - * @param href Resource的href + * @param href Resource的href * @return 返回Resource */ @@ -60,12 +62,14 @@ public class ResourceUtil { private static String createHtml(String title, String txt) { StringBuilder body = new StringBuilder(); for (String s : txt.split("\\r?\\n")) { - s=StringUtil.FixTrim(s); + s = StringUtil.FixTrim(s); if (s.length() != 0) { - if(s.contains("") - body.append(s);//.append(""); - }else { + body.append(s); + //.append(""); + } else { body.append("

").append(s).append("

"); } @@ -86,6 +90,7 @@ public class ResourceUtil { /** * 快速从File创建Resource + * * @param file File * @return Resource * @throws IOException IOException