diff options
author | Milan Bracke <mbracke@antidot.net> | 2021-06-24 09:27:28 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-10-18 19:15:40 -0700 |
commit | 465c28d28e1017040a41653edb6248056f178d3b (patch) | |
tree | 53c7255d8b1a8274289832b2056dfd3b9e206e6c /test/Tests | |
parent | 6acc82c5d2885c596c52e6c35bed8fe08f535066 (diff) | |
download | pandoc-465c28d28e1017040a41653edb6248056f178d3b.tar.gz |
Docx reader: fix handling of empty fields
Some fields only have an instrText and no content, Pandoc didn't
understand these, causing other fields to be misunderstood because it
seemed like a field was still open when it wasn't.
Diffstat (limited to 'test/Tests')
-rw-r--r-- | test/Tests/Readers/Docx.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Tests/Readers/Docx.hs b/test/Tests/Readers/Docx.hs index ea4094c82..be5b89b88 100644 --- a/test/Tests/Readers/Docx.hs +++ b/test/Tests/Readers/Docx.hs @@ -152,6 +152,10 @@ tests = [ testGroup "document" "docx/nested_instrText.docx" "docx/nested_instrText.native" , testCompare + "empty fields with <w:instrText> tag" + "docx/empty_field.docx" + "docx/empty_field.native" + , testCompare "pageref hyperlinks in <w:instrText> tag" "docx/pageref.docx" "docx/pageref.native" |