Commented out debug statements
This commit is contained in:
parent
b58ae4280d
commit
cb27f715b3
1 changed files with 10 additions and 10 deletions
|
@ -87,7 +87,7 @@ public class PageSplitter {
|
|||
i++;
|
||||
}
|
||||
System.out.println("splitSPB exit");
|
||||
Debug.printNode(onode);
|
||||
//Debug.printNode(onode);
|
||||
return onode;
|
||||
}
|
||||
private static boolean handleList(Node listFirstPart, Node list){
|
||||
|
@ -519,13 +519,13 @@ public class PageSplitter {
|
|||
|
||||
|
||||
private static Node handleParagraph(Node para) {
|
||||
System.out.println("handlePara");
|
||||
//System.out.println("handlePara");
|
||||
Node paraBefore = para.cloneNode(false);
|
||||
boolean dataMoved = false;
|
||||
int i = 0;
|
||||
NodeList сhilds = para.getChildNodes();
|
||||
while (сhilds.getLength() > i) {
|
||||
System.out.println("In WHILE HANDLE PARA");
|
||||
//System.out.println("In WHILE HANDLE PARA");
|
||||
|
||||
Node child = сhilds.item(i);
|
||||
//NOT TEXT NODES
|
||||
|
@ -533,23 +533,23 @@ public class PageSplitter {
|
|||
String childName = child.getNodeName();
|
||||
//SPB FOUND
|
||||
if (containsSPB(child)){
|
||||
System.out.println(childName);
|
||||
//System.out.println(childName);
|
||||
if (childName.equals(TEXT_SOFT_PAGE_BREAK)){
|
||||
//removeSPB
|
||||
System.out.println("REMOVE SPB");
|
||||
//System.out.println("REMOVE SPB");
|
||||
para.removeChild(child);
|
||||
} else
|
||||
if (childName.equals(TEXT_NOTE)){
|
||||
Element textNote = (Element) child;
|
||||
System.out.println("handle TextNote in para");
|
||||
//System.out.println("handle TextNote in para");
|
||||
splitSoftPageBreak(textNote.getElementsByTagName(TEXT_NOTE_BODY).item(0), officeReader);
|
||||
} else
|
||||
if (childName.equals(TEXT_SPAN)){
|
||||
Element textNote = (Element) child;
|
||||
System.out.println("handle SPAN");
|
||||
//System.out.println("handle SPAN");
|
||||
handleSpan(child);
|
||||
} else {
|
||||
Debug.printNode(child);
|
||||
//Debug.printNode(child);
|
||||
System.out.println("ERROR: SPB INSIDE Paragraph Element in inner element " + childName);
|
||||
System.exit(1);
|
||||
}
|
||||
|
@ -595,7 +595,7 @@ public class PageSplitter {
|
|||
handleSpan(child);
|
||||
} else {
|
||||
System.out.println("SPB INSIDE SPAN! HELP!");
|
||||
Debug.printNode(child);
|
||||
//Debug.printNode(child);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -604,7 +604,7 @@ public class PageSplitter {
|
|||
}
|
||||
}
|
||||
private static Node handleNote(Node note) {
|
||||
Debug.printNode(note);
|
||||
//Debug.printNode(note);
|
||||
System.exit(1);
|
||||
Node parent = note.getParentNode();
|
||||
Element NoteElement = (Element) note;
|
||||
|
|
Loading…
Add table
Reference in a new issue