aboutsummaryrefslogtreecommitdiff
path: root/test/Tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-11-03 12:54:42 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-11-03 12:54:42 -0800
commit530bfe5f5afb1098ef8cec46ffe00ff8a6f00a43 (patch)
treeb8da97f72734897f1e52f4d4ffbe8a998147806d /test/Tests
parente906e5ac23177c4377591c73c8e796e764096a32 (diff)
downloadpandoc-530bfe5f5afb1098ef8cec46ffe00ff8a6f00a43.tar.gz
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 ```
Diffstat (limited to 'test/Tests')
-rw-r--r--test/Tests/Readers/Docx.hs4
1 files changed, 4 insertions, 0 deletions
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
@@ -272,6 +272,10 @@ tests = [ testGroup "document"
"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"
"docx/definition_list.native"