diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-11-03 12:54:42 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-11-03 12:54:42 -0800 |
commit | 530bfe5f5afb1098ef8cec46ffe00ff8a6f00a43 (patch) | |
tree | b8da97f72734897f1e52f4d4ffbe8a998147806d /test/docx | |
parent | e906e5ac23177c4377591c73c8e796e764096a32 (diff) | |
download | pandoc-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/docx')
-rw-r--r-- | test/docx/lists_sublist_reset.docx | bin | 0 -> 12757 bytes | |||
-rw-r--r-- | test/docx/lists_sublist_reset.native | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/docx/lists_sublist_reset.docx b/test/docx/lists_sublist_reset.docx Binary files differnew file mode 100644 index 000000000..d4bf73852 --- /dev/null +++ b/test/docx/lists_sublist_reset.docx diff --git a/test/docx/lists_sublist_reset.native b/test/docx/lists_sublist_reset.native new file mode 100644 index 000000000..9ee80b2e8 --- /dev/null +++ b/test/docx/lists_sublist_reset.native @@ -0,0 +1,8 @@ +[OrderedList (1,Decimal,Period) + [[Para [Str "Head",Space,Str "1"] + ,OrderedList (1,Decimal,DefaultDelim) + [[Para [Str "Head",Space,Str "1.1"]] + ,[Para [Str "Head",Space,Str "1.2"]]]] + ,[Para [Str "Head",Space,Str "2"] + ,OrderedList (1,Decimal,DefaultDelim) + [[Para [Str "Head",Space,Str "2.1"]]]]]] |