This commit is contained in:
Georgy Litvinov 2019-04-22 12:12:42 +03:00
parent 3dbbd23883
commit aaf94cd648
2 changed files with 5 additions and 6 deletions

View file

@ -58,12 +58,11 @@ public class DocumentSeparator {
if (headingSeparation.equals(SECTIONS)){ if (headingSeparation.equals(SECTIONS)){
closeCommentHeadings(hnode, curLevel); closeCommentHeadings(hnode, curLevel);
} }
//System.out.println("before split " + curLevel + " Has content? " + converter.getOutFileIndex()); // TODO: If split then move page div to new document. Dont split in text. Make option in menu
//System.out.println(hnode.getNodeName()); if (splitLevel >= curLevel && (converter.outFileHasContent() || converter.getOutFileIndex() == 1)) {
/*if (splitLevel >= curLevel && (converter.outFileHasContent() || converter.getOutFileIndex() == 1)) { System.out.println("Split happened");
System.out.println("Split happened");
hnode = converter.nextOutFile(); hnode = converter.nextOutFile();
}*/ }
//Place to split headings //Place to split headings
if (headingSeparation.equals(SECTIONS)){ if (headingSeparation.equals(SECTIONS)){

View file

@ -257,7 +257,7 @@ public class XhtmlConfig extends writer2latex.base.ConfigBase {
nValue = Misc.getPosInteger(sValue,0); nValue = Misc.getPosInteger(sValue,0);
} }
}; };
options[REPEAT_LEVELS] = new IntegerOption("repeat_levels","5") { options[REPEAT_LEVELS] = new IntegerOption("repeat_levels","0") {
@Override public void setString(String sValue) { @Override public void setString(String sValue) {
super.setString(sValue); super.setString(sValue);
nValue = Misc.getPosInteger(sValue,0); nValue = Misc.getPosInteger(sValue,0);