aboutsummaryrefslogtreecommitdiff
path: root/test/docx
diff options
context:
space:
mode:
authorDiego Balseiro <dbalseiro@stackbuilders.com>2020-10-06 23:03:00 -0500
committerGitHub <noreply@github.com>2020-10-06 21:03:00 -0700
commiteda5540719e9771b48f15aa7f431033163e1f161 (patch)
tree261e3854c0c901ca6039cb8e3e2a27d6e4da4787 /test/docx
parenta27a0b5419d8abdb374fac7cddc6f9ce128c0f96 (diff)
downloadpandoc-eda5540719e9771b48f15aa7f431033163e1f161.tar.gz
DOCX reader: Allow empty dates in comments and tracked changes (#6726)
For security reasons, some legal firms delete the date from comments and tracked changes. * Make date optional (Maybe) in tracked changes and comments datatypes * Add tests
Diffstat (limited to 'test/docx')
-rw-r--r--test/docx/golden/track_changes_scrubbed_metadata.docxbin0 -> 10013 bytes
-rw-r--r--test/docx/track_changes_scrubbed_metadata.docxbin0 -> 13325 bytes
-rw-r--r--test/docx/track_changes_scrubbed_metadata.native9
3 files changed, 9 insertions, 0 deletions
diff --git a/test/docx/golden/track_changes_scrubbed_metadata.docx b/test/docx/golden/track_changes_scrubbed_metadata.docx
new file mode 100644
index 000000000..50951f0d2
--- /dev/null
+++ b/test/docx/golden/track_changes_scrubbed_metadata.docx
Binary files differ
diff --git a/test/docx/track_changes_scrubbed_metadata.docx b/test/docx/track_changes_scrubbed_metadata.docx
new file mode 100644
index 000000000..07cac8c20
--- /dev/null
+++ b/test/docx/track_changes_scrubbed_metadata.docx
Binary files differ
diff --git a/test/docx/track_changes_scrubbed_metadata.native b/test/docx/track_changes_scrubbed_metadata.native
new file mode 100644
index 000000000..529a9bca6
--- /dev/null
+++ b/test/docx/track_changes_scrubbed_metadata.native
@@ -0,0 +1,9 @@
+[Para [ Str "Here", Space, Str "is", Space, Str "a", Space
+ , Span ("",["deletion"],[("author","Author")]) [Str "dummy"]
+ , Span ("",["insertion"],[("author","Author")]) [Str "test"]
+ , Space
+ , Span ("",["comment-start"],[("id","3"),("author","Author")])
+ [Str "With",Space,Str "a",Space,Str "comment!"]
+ , Str "document",Span ("",["comment-end"],[("id","3")]) [],Str "."
+ ]
+]