From 530bfe5f5afb1098ef8cec46ffe00ff8a6f00a43 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 3 Nov 2019 12:54:42 -0800 Subject: Docx reader: fix list number resumption for sublists. Closes #4324. The first list item of a sublist should not resume numbering from the number of the last sublist item of the same level, if that sublist was a sublist of a different list item. That is, we should not get: ``` 1. one 1. sub one 2. sub two 2. two 3. sub one ``` --- test/Tests/Readers/Docx.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/Tests') diff --git a/test/Tests/Readers/Docx.hs b/test/Tests/Readers/Docx.hs index 583a6ec18..e107ff9ee 100644 --- a/test/Tests/Readers/Docx.hs +++ b/test/Tests/Readers/Docx.hs @@ -271,6 +271,10 @@ tests = [ testGroup "document" "lists restarting after interruption" "docx/lists_restarting.docx" "docx/lists_restarting.native" + , testCompare + "sublists reset numbering to 1" + "docx/lists_sublist_reset.docx" + "docx/lists_sublist_reset.native" , testCompare "definition lists" "docx/definition_list.docx" -- cgit v1.2.3