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

We don't want them to turn into a list.

commit7f4a40474c77a72cb66b9f583d241c1f21ef695f authorJesse Rosenthal <jrosenthal@jhu.edu> dateWed 16 Mar 2016, 12:56 (11 years ago) parent855c8b4
3 files changed+9−1
tests/Tests/Readers/Docx.hs+5−1 tests/docx/enumerated_headings.docx tests/docx/enumerated_headings.native+4
tests/Tests/Readers/Docx.hs+5−1
@@ -169,9 +169,13 @@ tests = [ testGroup "inlines"
169169 "docx/already_auto_ident.docx"
170170 "docx/already_auto_ident.native"
171171 , testCompare
172− "numbered headers automatically made into list"
172+ "single numbered item not made into list"
173173 "docx/numbered_header.docx"
174174 "docx/numbered_header.native"
175+ , testCompare
176+ "enumerated headers not made into numbered list"
177+ "docx/enumerated_headings.docx"
178+ "docx/enumerated_headings.native"
175179 , testCompare
176180 "i18n blocks (headers and blockquotes)"
177181 "docx/i18n_blocks.docx"
tests/docx/enumerated_headings.docxnew file

Binary file not shown.

tests/docx/enumerated_headings.nativenew file+4
@@ -0,0 +1,4 @@
1+[Header 1 ("h1",[],[]) [Str "H1"]
2+,Header 2 ("h2",[],[]) [Str "H2"]
3+,Header 3 ("h3",[],[]) [Str "H3"]
4+,Para [Str "And",Space,Str "some",Space,Str "text"]]