From 3c10ed4b1cf9f98989764b8c22ea8b0653addd63 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Fri, 12 Feb 2021 23:50:07 +0100 Subject: [PATCH] Do not split by outline when niether rdf separation, nor split by outline, nor greenstone separation. --- src/main/java/w2phtml/xhtml/content/Separator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/w2phtml/xhtml/content/Separator.java b/src/main/java/w2phtml/xhtml/content/Separator.java index e327d02..02b7086 100644 --- a/src/main/java/w2phtml/xhtml/content/Separator.java +++ b/src/main/java/w2phtml/xhtml/content/Separator.java @@ -160,7 +160,7 @@ public class Separator { } private boolean noSplitNeeded(int pageNum, int curLevel) { - return !greenstoneSeparation && !pagination && !isSplitTime(curLevel,pageNum); + return !greenstoneSeparation && !rdfSeparation && splitLevel == 0 && !isSplitTime(curLevel,pageNum); } private void addToCommentStack(String sLevel) {