|
@@ -356,8 +356,8 @@ public class ExportPaperUtil {
|
|
|
getSectionElement(e, ses, diposeFillBlank);
|
|
|
}
|
|
|
} else {
|
|
|
- SectionElement se = new SectionElement();
|
|
|
if (ce instanceof TextNode) {
|
|
|
+ SectionElement se = new SectionElement();
|
|
|
TextNode tn = (TextNode) ce;
|
|
|
se.setType(ELEMENT_TYPE_TEXT);
|
|
|
String text = tn.text();
|
|
@@ -366,7 +366,9 @@ public class ExportPaperUtil {
|
|
|
}
|
|
|
text = text.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\u0000", " ");
|
|
|
se.setValue(text);
|
|
|
+ ses.add(se);
|
|
|
} else if (ce instanceof Element) {
|
|
|
+ SectionElement se = new SectionElement();
|
|
|
if ("img".equals(ce.nodeName())) {
|
|
|
se.setType(ELEMENT_TYPE_IMG);
|
|
|
se.setValue(ce.attr("src"));
|
|
@@ -379,8 +381,8 @@ public class ExportPaperUtil {
|
|
|
se.setType(ELEMENT_TYPE_TEXT);
|
|
|
se.setValue(el.text());
|
|
|
}
|
|
|
+ ses.add(se);
|
|
|
}
|
|
|
- ses.add(se);
|
|
|
}
|
|
|
}
|
|
|
|