diff options
| author | Michael Hoffmann <brennan.brisad@gmail.com> | 2022-01-12 00:48:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-11 15:48:41 -0800 |
| commit | 5001fd3f4d0daee5802a78f6d99d538ff9db4336 (patch) | |
| tree | eae58b1ea82078d3d2c3603d7d8811876e52adae /test/docx | |
| parent | a25e79b5bef9a55c076351d1321675e26513f8ac (diff) | |
Docx writer: Handle bullets correctly in lists by not reusing numIds (#7822)
Make sure that we only create one bullet per list item in docx. In
particular, when a div is a list item, its contained paragraphs will
now no longer wrongly get individual bullets.
This is accomplished by making sure that for each list, we only use
the associated numId once. Any repeated use would add incorrect
bullets to the document.
Closes #7689
Diffstat (limited to 'test/docx')
| -rw-r--r-- | test/docx/golden/lists_div_bullets.docx | bin | 0 -> 9878 bytes | |||
| -rw-r--r-- | test/docx/lists_div_bullets.native | 5 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/docx/golden/lists_div_bullets.docx b/test/docx/golden/lists_div_bullets.docx Binary files differnew file mode 100644 index 000000000..84b7c6501 --- /dev/null +++ b/test/docx/golden/lists_div_bullets.docx diff --git a/test/docx/lists_div_bullets.native b/test/docx/lists_div_bullets.native new file mode 100644 index 000000000..f86d76083 --- /dev/null +++ b/test/docx/lists_div_bullets.native @@ -0,0 +1,5 @@ +[ BulletList + [ [ Div ( "", [], []) [ Para [ Str "one" ], Para [ Str "two" ] ] ] + , [ Div ( "refs", [], []) [ Header 1 ( "" , [] , [] ) [ Str "three" ], Para [ Str "four" ] ] ] + ] +] |
