git.iko.soy/typeable/pandoc
on master help sign in
Docx reader: Add test for polyglot headers.

Only Danish at the moment.

commitf56e0e958a1f2d1332bdb350205ee38afcaf4a1c authorJesse Rosenthal <jrosenthal@jhu.edu> dateFri 5 Sep 2014, 22:07 (12 years ago) parent7145294
3 files changed+14
tests/Tests/Readers/Docx.hs+4 tests/docx/danish_headers.docx tests/docx/danish_headers.native+10
tests/Tests/Readers/Docx.hs+4
@@ -156,6 +156,10 @@ tests = [ testGroup "inlines"
156156 "numbered headers automatically made into list"
157157 "docx/numbered_header.docx"
158158 "docx/numbered_header.native"
159+ , testCompare
160+ "headers in other languages"
161+ "docx/danish_headers.docx"
162+ "docx/danish_headers.native"
159163 , testCompare
160164 "lists"
161165 "docx/lists.docx"
tests/docx/danish_headers.docxnew file

Binary file not shown.

tests/docx/danish_headers.nativenew file+10
@@ -0,0 +1,10 @@
1+[Header 1 ("testoverskrift",[],[]) [Str "Testoverskrift"]
2+,Para [Str "Normal"]
3+,Header 2 ("testoverskrift-2",[],[]) [Str "Testoverskrift",Space,Str "2"]
4+,Table [] [AlignDefault,AlignDefault] [0.0,0.0]
5+ [[Plain [Str "Kolonne1"]]
6+ ,[Plain [Str "Kolonne2"]]]
7+ [[[Plain [Str "Testdata",Space,Str "1"]]
8+ ,[Plain [Str "Tester2"]]]
9+ ,[[Plain [Str "Testdata",Space,Str "2"]]
10+ ,[Plain [Str "Tester3"]]]]]