提交 ccccc89a 作者: chenshiqiang

fix p

上级 a288f6f9
...@@ -94,8 +94,8 @@ class KnowledgeServiceImpl implements IKnowledgeService { ...@@ -94,8 +94,8 @@ class KnowledgeServiceImpl implements IKnowledgeService {
try { try {
File file = new File(filesStorage + knowledge.getFiles().get(0).getFilePath()); File file = new File(filesStorage + knowledge.getFiles().get(0).getFilePath());
html =DocUtil.convertDocStream2Html(new FileInputStream(file)); html =DocUtil.convertDocStream2Html(new FileInputStream(file));
String htmlWithTable = html.replace("<p>", ""); String htmlWithTable = html.replace("<p>", "######<p>");
contentStringList = Arrays.asList(htmlWithTable.split("</p>")); contentStringList = Arrays.asList(htmlWithTable.split("######"));
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论