diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2019-02-12 17:26:37 -0500 |
---|---|---|
committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2019-02-12 17:26:37 -0500 |
commit | 332e2ba5b6ec2be880f082bb0fd746108b45799d (patch) | |
tree | d9180fc87010113166937b6d0aaf0855059cd412 | |
parent | 8552e188cdac82ad6810a9b58450671fc4ceca18 (diff) | |
download | pandoc-332e2ba5b6ec2be880f082bb0fd746108b45799d.tar.gz |
Docx reader: Add test for reading sdts in footnotes.
-rw-r--r-- | test/Tests/Readers/Docx.hs | 4 | ||||
-rw-r--r-- | test/docx/sdt_in_footnote.docx | bin | 0 -> 26716 bytes | |||
-rw-r--r-- | test/docx/sdt_in_footnote.native | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/test/Tests/Readers/Docx.hs b/test/Tests/Readers/Docx.hs index 48b9a27d0..25fde29b9 100644 --- a/test/Tests/Readers/Docx.hs +++ b/test/Tests/Readers/Docx.hs @@ -198,6 +198,10 @@ tests = [ testGroup "document" "docx/sdt_elements.docx" "docx/sdt_elements.native" , testCompare + "Structured Document Tags in footnotes" + "docx/sdt_in_footnote.docx" + "docx/sdt_in_footnote.native" + , testCompare "nested Structured Document Tags" "docx/nested_sdt.docx" "docx/nested_sdt.native" diff --git a/test/docx/sdt_in_footnote.docx b/test/docx/sdt_in_footnote.docx Binary files differnew file mode 100644 index 000000000..547c2247a --- /dev/null +++ b/test/docx/sdt_in_footnote.docx diff --git a/test/docx/sdt_in_footnote.native b/test/docx/sdt_in_footnote.native new file mode 100644 index 000000000..d689c7d76 --- /dev/null +++ b/test/docx/sdt_in_footnote.native @@ -0,0 +1 @@ +[Para [Str "Lorem",Space,Str "ipsum",Space,Str "dolor",Space,Str "sit",Space,Str "amet.",Note [Para [Str "Vgl.",Space,Emph [Str "Bitzios"],Space,Str "u.",Space,Str "a.:",Space,Str "Dissonance",Space,Str "in",Space,Str "the",Space,Str "food",Space,Str "traceability",Space,Str "regulatory",Space,Str "environment",Space,Str "and",Space,Str "food",Space,Str "fraud,",Space,Str "in:",Space,Str "Dries",Space,Str "u.",Space,Str "a.",Space,Str "(Hrsg.):",Space,Str "It\8217s",Space,Str "a",Space,Str "jungle",Space,Str "out",Space,Str "there",Space,Str "-",Space,Str "the",Space,Str "strange",Space,Str "animals",Space,Str "of",Space,Str "economic",Space,Str "organization",Space,Str "in",Space,Str "agri-food",Space,Str "value",Space,Str "chains,",Space,Str "Wageningen",Space,Str "im",Space,Str "Druck,",Space,Str "hier",Space,Str "S.\160\&100-105."]]]] |