git.iko.soy/typeable/pandoc
on master help sign in
Docx reader: add tests for structured document tags unwrapping.
commitd71165c8e2b348ee65c8d92d6ca5f8a24b1cfa92 authorJesse Rosenthal <jrosenthal@jhu.edu> dateWed 27 Dec 2017, 10:01 (9 years ago) parentdc3ee50
3 files changed+14
test/Tests/Readers/Docx.hs+4 test/docx/sdt_elements.docx test/docx/sdt_elements.native+10
test/Tests/Readers/Docx.hs+4
@@ -171,6 +171,10 @@ tests = [ testGroup "inlines"
171171 "inline code in subscript and superscript"
172172 "docx/verbatim_subsuper.docx"
173173 "docx/verbatim_subsuper.native"
174+ , testCompare
175+ "inlines inside of Structured Document Tags"
176+ "docx/sdt_elements.docx"
177+ "docx/sdt_elements.native"
174178 ]
175179 , testGroup "blocks"
176180 [ testCompare
test/docx/sdt_elements.docxnew file

Binary file not shown.

test/docx/sdt_elements.nativenew file+10
@@ -0,0 +1,10 @@
1+[Table [] [AlignDefault,AlignDefault,AlignDefault] [0.0,0.0,0.0]
2+ [[]
3+ ,[]
4+ ,[]]
5+ [[[Plain [Strong [Str "col1Header"]]]
6+ ,[Plain [Strong [Str "col2Header"]]]
7+ ,[Plain [Strong [Str "col3Header"]]]]
8+ ,[[Plain [Str "col1",Space,Str "content"]]
9+ ,[Plain [Str "Body",Space,Str "copy"]]
10+ ,[Plain [Str "col3",Space,Str "content"]]]]]