From 759d3302e7049743f578a483831dac0af3928b7e Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Fri, 24 Jul 2020 20:46:02 +0200 Subject: [PATCH] Switch to splitters factory --- src/main/java/w2phtml/xhtml/content/TextParser.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/w2phtml/xhtml/content/TextParser.java b/src/main/java/w2phtml/xhtml/content/TextParser.java index e7e3a01..da33d39 100644 --- a/src/main/java/w2phtml/xhtml/content/TextParser.java +++ b/src/main/java/w2phtml/xhtml/content/TextParser.java @@ -42,6 +42,7 @@ import w2phtml.office.OfficeStyle; import w2phtml.office.PageLayout; import w2phtml.office.StyleWithProperties; import w2phtml.office.XMLString; +import w2phtml.pageSplitters.SplitFactory; import w2phtml.util.Misc; import w2phtml.xhtml.Converter; import w2phtml.xhtml.ODFPageSplitter; @@ -166,7 +167,9 @@ public class TextParser extends Parser { //Split pages if (pagination) { - ODFPageSplitter.splitOfficeText(onode, ofr); + //ODFPageSplitter.splitOfficeText(onode, ofr); + SplitFactory splitters = new SplitFactory(ofr); + splitters.split(onode); //Debug.printNode(onode); } hnode = (Element)traverseBlockText(onode,hnode);