diff --git a/src/main/java/w2phtml/pageSplitters/ListSplitter.java b/src/main/java/w2phtml/pageSplitters/ListSplitter.java
index bd80e16..20fe791 100644
--- a/src/main/java/w2phtml/pageSplitters/ListSplitter.java
+++ b/src/main/java/w2phtml/pageSplitters/ListSplitter.java
@@ -79,7 +79,9 @@ public class ListSplitter extends BasicSplitter implements ISplitter {
//Debug.prettyPrintXml(list.getOwnerDocument());
((Element) list).setAttribute(TEXT_CONTINUE_NUMBERING, "true");
parent.insertBefore(listFirstPart, list);
- //parent.insertBefore(softPageBreak, list);
+ if (isRootElement(list)) {
+ parent.insertBefore(softPageBreak, list);
+ }
results.setSPB(softPageBreak);
// System.out.println("LIST FIRST PART");
// Debug.printNode(listFirstPart);
diff --git a/src/r_tests/java/w2phtml/regressionTests/html5/BulletList.java b/src/r_tests/java/w2phtml/regressionTests/html5/BulletList.java
new file mode 100644
index 0000000..af9fef7
--- /dev/null
+++ b/src/r_tests/java/w2phtml/regressionTests/html5/BulletList.java
@@ -0,0 +1,31 @@
+package w2phtml.regressionTests.html5;
+
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.commons.io.FileUtils;
+import org.junit.jupiter.api.DisplayName;
+import org.junit.jupiter.api.Test;
+
+public class BulletList {
+ @Test
+ @DisplayName("List on multiple pages")
+ void testExample() throws Exception {
+ String name = "list";
+ File input = new File("./testdocuments/input/" + name + ".odt");
+ assertTrue(input.exists());
+ List arguments = new ArrayList();
+ arguments.add("-page_break_style");
+ arguments.add("height:3em;margin-top:1em;margin-bottom:1em;background-color:red;");
+ arguments.add("-html5");
+ arguments.add("./testdocuments/input/" + name + ".odt");
+ arguments.add("./testdocuments/output/" + name + ".html");
+ w2phtml.Application.main(arguments.toArray(new String[0]));
+ File result = new File("./testdocuments/output/" + name + ".html");
+ File model = new File("./testdocuments/model/" + name + ".html");
+ assertTrue(FileUtils.contentEquals(result, model), "The files differ!");
+ }
+}
diff --git a/testdocuments/input/list.odt b/testdocuments/input/list.odt
new file mode 100644
index 0000000..33677d2
Binary files /dev/null and b/testdocuments/input/list.odt differ
diff --git a/testdocuments/model/list.html b/testdocuments/model/list.html
new file mode 100644
index 0000000..b944d08
--- /dev/null
+++ b/testdocuments/model/list.html
@@ -0,0 +1,37 @@
+
+
+
+ Default
+
+
+
+
+
+
+
+
+
+
+