diff --git a/src/main/java/writer2latex/xhtml/DocumentSeparator.java b/src/main/java/writer2latex/xhtml/DocumentSeparator.java index af28216..0d1969e 100644 --- a/src/main/java/writer2latex/xhtml/DocumentSeparator.java +++ b/src/main/java/writer2latex/xhtml/DocumentSeparator.java @@ -20,7 +20,7 @@ public class DocumentSeparator { private static final String SECTIONS = "sections"; private static final String DIV = "div"; private int splitLevel = 0; - private boolean splitByPages = true; + private boolean splitByPages = false; private int lastSplitPageNum = 1; private static LinkedList headerStack = new LinkedList(); @@ -39,6 +39,7 @@ public class DocumentSeparator { headingSeparation = config.getHeadingTags(); pageSeparation = config.getPageTags(); splitLevel = config.getXhtmlSplitLevel(); + splitByPages = pageSeparation.equals(DIV) ? true : false; } protected Node processOutlineLevel(Node currentNode, Node hnode, int pageNum) {