diff --git a/src/main/java/w2phtml/xhtml/ODFPageSplitter.java b/src/main/java/w2phtml/xhtml/ODFPageSplitter.java
index e7f55aa..f360e3d 100644
--- a/src/main/java/w2phtml/xhtml/ODFPageSplitter.java
+++ b/src/main/java/w2phtml/xhtml/ODFPageSplitter.java
@@ -214,9 +214,6 @@ public class ODFPageSplitter {
if (!child.hasChildNodes()){
list.removeChild(child);
}
-
-
-
}
//Add text:continue-numbering="true"
if (dataMoved){
@@ -230,7 +227,11 @@ public class ODFPageSplitter {
}
+ } else {
+ System.out.println("Error. SPB in List child node " + nodeName);
+ System.exit(1);
}
+
}
}
if (dataMoved) {
@@ -264,6 +265,9 @@ public class ODFPageSplitter {
if (handleParagraph(listItemChild)){
listItemFirstPart.appendChild(listItemChild.getPreviousSibling());
dataMoved=true;
+ } else {
+ System.out.println("Error. SPB in List item child node " + nodeName);
+ System.exit(1);
}
}
break;
@@ -536,7 +540,16 @@ public class ODFPageSplitter {
cellFirstPart.appendChild(cellChildNode.getPreviousSibling());
dataMoved=true;
}
- }
+ } else if (nodeName.equals(TABLE_TABLE)) {
+ if (handleTableTable(cellChildNode)){
+ cellFirstPart.appendChild(cellChildNode.getPreviousSibling());
+ dataMoved=true;
+ }
+ } else {
+ System.out.println("Error. SPB in Cell child node " + nodeName);
+ System.exit(1);
+ }
+
break;
} else {
cellFirstPart.appendChild(cellChildNode);
@@ -594,6 +607,9 @@ public class ODFPageSplitter {
if (handleList(child)){
dataMoved=true;
}
+ } else {
+ System.out.println("Error. SPB in Section child node " + nodeName);
+ System.exit(1);
}
//split node with spb and exit
break;