This commit is contained in:
Georgy Litvinov 2020-06-25 12:40:03 +02:00
parent 6b09e2b1f5
commit a4520bb046
4 changed files with 8 additions and 7 deletions

View file

@ -2,7 +2,7 @@ apply plugin: 'java'
repositories{ repositories{
mavenCentral() mavenCentral()
} }
def releaseVersion = "0.5.12" def releaseVersion = "0.5.13"
def propertyFile = file "src/main/java/w2phtml/project.properties" def propertyFile = file "src/main/java/w2phtml/project.properties"
Properties properties = new Properties() Properties properties = new Properties()
propertyFile.withReader { properties.load(it) } propertyFile.withReader { properties.load(it) }

View file

@ -1,3 +1,3 @@
#Wed Apr 22 20:17:51 CEST 2020 #Thu Jun 25 12:35:29 CEST 2020
releaseVersion=0.5.7 releaseVersion=0.5.12
releaseDate=20\:17\:51 22-04-2020 releaseDate=12\:35\:29 25-06-2020

View file

@ -68,7 +68,8 @@ public class Separator {
int curLevel = Integer.parseInt(sLevel); int curLevel = Integer.parseInt(sLevel);
if (noSplitNeeded(pageNum, curLevel)) { if (noSplitNeeded(pageNum, curLevel)) {
System.out.println("No split needed");
return hnode; return hnode;
} }
@ -112,7 +113,7 @@ public class Separator {
} }
private boolean noSplitNeeded(int pageNum, int curLevel) { private boolean noSplitNeeded(int pageNum, int curLevel) {
return !greenstoneSeparation && !isSplitTime(curLevel,pageNum); return !greenstoneSeparation && !pagination && !isSplitTime(curLevel,pageNum);
} }
private void addToCommentStack(String sLevel) { private void addToCommentStack(String sLevel) {

View file

@ -3,7 +3,7 @@
<identifier value="pro.litvinovg.writer2paginatedhtml"/> <identifier value="pro.litvinovg.writer2paginatedhtml"/>
<version value="0.5.10"/> <version value="0.5.12"/>
<dependencies> <dependencies>
<OpenOffice.org-minimal-version d:name="OpenOffice.org 3.0" value="3.0"/> <OpenOffice.org-minimal-version d:name="OpenOffice.org 3.0" value="3.0"/>