git.iko.soy/typeable/pandoc
on master help sign in
Docx reader: Add tests for new list style parsing.
commit29955267722d30708e6acb5425f64cc02c796be0 authorJesse Rosenthal <jrosenthal@jhu.edu> dateThu 19 Feb 2015, 00:24 (12 years ago) parenta01913b
3 files changed+10
tests/Tests/Readers/Docx.hs+4 tests/docx/german_styled_lists.docx tests/docx/german_styled_lists.native+6
tests/Tests/Readers/Docx.hs+4
@@ -171,6 +171,10 @@ tests = [ testGroup "inlines"
171171 "definition lists"
172172 "docx/definition_list.docx"
173173 "docx/definition_list.native"
174+ , testCompare
175+ "custom defined lists in styles"
176+ "docx/german_styled_lists.docx"
177+ "docx/german_styled_lists.native"
174178 , testCompare
175179 "footnotes and endnotes"
176180 "docx/notes.docx"
tests/docx/german_styled_lists.docxnew file

Binary file not shown.

tests/docx/german_styled_lists.nativenew file+6
@@ -0,0 +1,6 @@
1+[BulletList
2+ [[Para [Str "One",Space,Str "level",Space,Str "of",Space,Str "the",Space,Str "list."]]
3+ ,[Para [Str "Second",Space,Str "level",Space,Str "of",Space,Str "the",Space,Str "list."]
4+ ,BulletList
5+ [[Para [Str "Next",Space,Str "level",Space,Str "of",Space,Str "the",Space,Str "list"]]]]
6+ ,[Para [Str "Back",Space,Str "to",Space,Str "the",Space,Str "top",Space,Str "level."]]]]