refactoring
This commit is contained in:
parent
a93679a41b
commit
98cfd4dd37
1 changed files with 4 additions and 4 deletions
|
@ -457,10 +457,10 @@ public class PageSplitter {
|
|||
boolean dataMoved = false;
|
||||
// Node counter
|
||||
int i = 0;
|
||||
NodeList sectionChilds = section.getChildNodes();
|
||||
while (sectionChilds.getLength() > i) {
|
||||
NodeList childs = section.getChildNodes();
|
||||
while (childs.getLength() > i) {
|
||||
|
||||
Node child = sectionChilds.item(0);
|
||||
Node child = childs.item(0);
|
||||
if ((child.getNodeType() == Node.ELEMENT_NODE)) {
|
||||
String nodeName = child.getNodeName();
|
||||
if (containsSPB(child)){
|
||||
|
@ -616,7 +616,7 @@ public class PageSplitter {
|
|||
StyleWithProperties newStyle = officeReader.getParStyle(Misc.getAttribute(paraAfter, TEXT_STYLE_NAME));
|
||||
newStyle.setParProperty(FO_TEXT_INDENT, "0");
|
||||
}
|
||||
// Returns true if soft-page-break found. Removes it if removeFound = true
|
||||
|
||||
private static void removeSPB(Node node) {
|
||||
if (node.getNodeType() == Node.ELEMENT_NODE) {
|
||||
if (node.getNodeName().equals(TEXT_SOFT_PAGE_BREAK)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue