aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-10-15 23:23:45 +0200
committerJohn MacFarlane <[email protected]>2025-10-15 23:33:04 +0200
commitd4dd5e9ab945fca7b3e6bcc97993381a12eb39ab (patch)
tree4d7d962badf5457f0685c3e17c21ed33132cbfff /test
parent80ccc78a522845e5c35c6f65845a4315ba699924 (diff)
Docx writer: properly handle nested comment spans.
Patch credit: @mmourino. Closes #8189. Closes #6959.
Diffstat (limited to 'test')
-rw-r--r--test/command/6959.md12
-rw-r--r--test/docx/golden/comments.docxbin10841 -> 10824 bytes
2 files changed, 12 insertions, 0 deletions
diff --git a/test/command/6959.md b/test/command/6959.md
new file mode 100644
index 000000000..b09a189f5
--- /dev/null
+++ b/test/command/6959.md
@@ -0,0 +1,12 @@
+```
+% pandoc -t docx | pandoc -f docx -t markdown --track-changes=all
+[This is the comment]{.comment-start id="1" author="Mike"
+date="2020-12-17T16:53:00Z"} [Here is my reply]{.comment-start id="2"
+author="Mike" date="2020-12-17T17:39:00Z"} This is the content being
+commented on [[]{.comment-end id="2"}]{.comment-end id="1"}
+^D
+[This is the comment]{.comment-start id="1" author="Mike"
+date="2020-12-17T16:53:00Z"} [Here is my reply]{.comment-start id="2"
+author="Mike" date="2020-12-17T17:39:00Z"} This is the content being
+commented on [[]{.comment-end id="2"}]{.comment-end id="1"}
+```
diff --git a/test/docx/golden/comments.docx b/test/docx/golden/comments.docx
index 57dbde327..2fe0f22bf 100644
--- a/test/docx/golden/comments.docx
+++ b/test/docx/golden/comments.docx
Binary files differ