diff --git a/src/main/java/writer2latex/xhtml/PageSplitter.java b/src/main/java/writer2latex/xhtml/PageSplitter.java
index 28a64a2..62f49a6 100644
--- a/src/main/java/writer2latex/xhtml/PageSplitter.java
+++ b/src/main/java/writer2latex/xhtml/PageSplitter.java
@@ -87,7 +87,6 @@ public class PageSplitter {
}
i++;
}
-
return onode;
}
private static boolean handleList(Node listFirstPart, Node list){
@@ -463,6 +462,7 @@ public class PageSplitter {
int i = 0;
NodeList sectionChildNodes = sectionNode.getChildNodes();
while (sectionChildNodes.getLength() > i) {
+
Node sectionChildNode = sectionChildNodes.item(0);
if ((sectionChildNode.getNodeType() == Node.ELEMENT_NODE)) {
String nodeName = sectionChildNode.getNodeName();
@@ -484,12 +484,17 @@ public class PageSplitter {
removeSPB(sectionNode);
i++;
continue;
+ } else if (nodeName.equals(XMLString.TABLE_TABLE)) {
+ if (handleTableTable(sectionChildFirstPart, sectionChildNode)){
+ sectionFirstPart.appendChild(sectionChildFirstPart);
+ dataMoved=true;
+ }
} else if (nodeName.equals(XMLString.TEXT_SECTION)) {
if (handleSection(sectionChildFirstPart, sectionChildNode)){
sectionFirstPart.appendChild(sectionChildFirstPart);
dataMoved=true;
}
- }
+ }
//split node with spb and exit
break;
} else {
@@ -503,6 +508,7 @@ public class PageSplitter {
}
}
+
return dataMoved;
}