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);