fix: add spb before list if spb located before first list item content
This commit is contained in:
parent
2ff537d384
commit
2b1c69e85e
1 changed files with 7 additions and 2 deletions
|
@ -60,9 +60,14 @@ public class ListSplitter extends BasicSplitter implements ISplitter {
|
||||||
} else {
|
} else {
|
||||||
list.removeChild(child);
|
list.removeChild(child);
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
//Debug.printNode(child);
|
//Debug.printNode(child);
|
||||||
|
//Found SPB at start of the list
|
||||||
|
//Add SPB before the list
|
||||||
|
if (isRootElement(list)) {
|
||||||
|
parent.insertBefore(softPageBreak, list);
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
// Not with SPB yet, move node, set dataMoved=true
|
// Not with SPB yet, move node, set dataMoved=true
|
||||||
|
|
Loading…
Add table
Reference in a new issue