Fix for prev commits
This commit is contained in:
parent
0926dbe218
commit
d53e861086
2 changed files with 6 additions and 6 deletions
src/main/java/writer2latex/xhtml/content
|
@ -225,8 +225,10 @@ public class Separator {
|
|||
node = node.getParentNode();
|
||||
}
|
||||
Node result = node.getParentNode();
|
||||
if (node.getChildNodes().getLength() == 0){
|
||||
result.removeChild(node);
|
||||
if (node.getChildNodes().getLength() == 1){
|
||||
if (node.getFirstChild().getChildNodes().getLength() == 0) {
|
||||
result.removeChild(node);
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
|
@ -1821,10 +1821,8 @@ public class TextParser extends Parser {
|
|||
private void setPageContainerStyle() {
|
||||
MasterPage mp = ofr.getFullMasterPage(currentMasterPage);
|
||||
PageLayout layout = ofr.getPageLayout(mp.getPageLayoutName());
|
||||
if (layout.getColCount() != 1) {
|
||||
String containerStyle = "column-count: " + layout.getColCount() + ";";
|
||||
pageContainer.setRootStyle(containerStyle);
|
||||
}
|
||||
String containerStyle = "column-count: " + layout.getColCount() + ";";
|
||||
pageContainer.setRootStyle(containerStyle);
|
||||
}
|
||||
|
||||
private void fitPageNumberToMasterPageStyle() {
|
||||
|
|
Loading…
Add table
Reference in a new issue