Disabled pagebreaks while inserting footnotes
This commit is contained in:
parent
4b15993e1f
commit
b55e16ff87
1 changed files with 6 additions and 0 deletions
|
@ -109,6 +109,7 @@ public class TextConverter extends ConverterHelper {
|
||||||
private boolean breakBeforeNextNode = false;
|
private boolean breakBeforeNextNode = false;
|
||||||
private boolean inTable = false;
|
private boolean inTable = false;
|
||||||
private boolean inList = false;
|
private boolean inList = false;
|
||||||
|
private boolean inFootnote = false;
|
||||||
|
|
||||||
public TextConverter(OfficeReader ofr, XhtmlConfig config, Converter converter) {
|
public TextConverter(OfficeReader ofr, XhtmlConfig config, Converter converter) {
|
||||||
super(ofr,config,converter);
|
super(ofr,config,converter);
|
||||||
|
@ -1666,6 +1667,9 @@ public class TextConverter extends ConverterHelper {
|
||||||
if (inList){
|
if (inList){
|
||||||
return hnode;
|
return hnode;
|
||||||
}
|
}
|
||||||
|
if (inFootnote){
|
||||||
|
return hnode;
|
||||||
|
}
|
||||||
Integer newPageNumber = null;
|
Integer newPageNumber = null;
|
||||||
if (style != null) {
|
if (style != null) {
|
||||||
// If style:paragraph-properties extists and contain
|
// If style:paragraph-properties extists and contain
|
||||||
|
@ -1685,7 +1689,9 @@ public class TextConverter extends ConverterHelper {
|
||||||
hnode = StartMasterPage(hnode, style, newPageNumber);
|
hnode = StartMasterPage(hnode, style, newPageNumber);
|
||||||
} else if (checkMasterPageBreak(style) || checkHardBreakBefore(style) || breakBeforeNextNode) {
|
} else if (checkMasterPageBreak(style) || checkHardBreakBefore(style) || breakBeforeNextNode) {
|
||||||
// Insert footnotes
|
// Insert footnotes
|
||||||
|
inFootnote = true;
|
||||||
footCv.insertFootnotes(hnode, true);
|
footCv.insertFootnotes(hnode, true);
|
||||||
|
inFootnote = false;
|
||||||
// Add previous MP footer
|
// Add previous MP footer
|
||||||
addFooter(hnode);
|
addFooter(hnode);
|
||||||
// Update MP
|
// Update MP
|
||||||
|
|
Loading…
Add table
Reference in a new issue