Do not split section if is in table

This commit is contained in:
Georgy Litvinov 2020-07-17 11:42:06 +02:00
parent 84a0910acf
commit 27a0881670

View file

@ -434,10 +434,10 @@ public class TextParser extends Parser {
if (!displayHiddenText && "none".equals(Misc.getAttribute(onode,TEXT_DISPLAY))) { return hnode; }
if (pageWasOpened) {hnode = docSep.closePage(hnode);}
if (pageWasOpened && !inTable) {hnode = docSep.closePage(hnode);}
boolean removeStyleAtExit = setSectionStyle(onode);
if (pageWasOpened) {hnode = docSep.openPage(hnode, pageNum);}
if (pageWasOpened && !inTable) {hnode = docSep.openPage(hnode, pageNum);}
hnode = traverseBlockText(onode, hnode);
if (isLast) {
insertEndnotes((Element) hnode, sectionName);