Split tables in tables

This commit is contained in:
Georgy Litvinov 2020-07-24 17:02:43 +02:00
parent 96cb7d9a72
commit b1788f2472

View file

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