diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2016-03-16 12:56:17 -0400 |
---|---|---|
committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2016-03-16 12:56:17 -0400 |
commit | 7f4a40474c77a72cb66b9f583d241c1f21ef695f (patch) | |
tree | 11cd95827e7e1150acea6d64b66345e2d0be7221 | |
parent | 855c8b43f0497125f8d24b113ce0df92ed7d074b (diff) | |
download | pandoc-7f4a40474c77a72cb66b9f583d241c1f21ef695f.tar.gz |
Docx reader: Add test for enumerated headers.
We don't want them to turn into a list.
-rw-r--r-- | tests/Tests/Readers/Docx.hs | 6 | ||||
-rw-r--r-- | tests/docx/enumerated_headings.docx | bin | 0 -> 12539 bytes | |||
-rw-r--r-- | tests/docx/enumerated_headings.native | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/tests/Tests/Readers/Docx.hs b/tests/Tests/Readers/Docx.hs index 9284d165a..e09d56529 100644 --- a/tests/Tests/Readers/Docx.hs +++ b/tests/Tests/Readers/Docx.hs @@ -169,10 +169,14 @@ tests = [ testGroup "inlines" "docx/already_auto_ident.docx" "docx/already_auto_ident.native" , testCompare - "numbered headers automatically made into list" + "single numbered item not made into list" "docx/numbered_header.docx" "docx/numbered_header.native" , testCompare + "enumerated headers not made into numbered list" + "docx/enumerated_headings.docx" + "docx/enumerated_headings.native" + , testCompare "i18n blocks (headers and blockquotes)" "docx/i18n_blocks.docx" "docx/i18n_blocks.native" diff --git a/tests/docx/enumerated_headings.docx b/tests/docx/enumerated_headings.docx Binary files differnew file mode 100644 index 000000000..afa84748a --- /dev/null +++ b/tests/docx/enumerated_headings.docx diff --git a/tests/docx/enumerated_headings.native b/tests/docx/enumerated_headings.native new file mode 100644 index 000000000..67c0df5e0 --- /dev/null +++ b/tests/docx/enumerated_headings.native @@ -0,0 +1,4 @@ +[Header 1 ("h1",[],[]) [Str "H1"] +,Header 2 ("h2",[],[]) [Str "H2"] +,Header 3 ("h3",[],[]) [Str "H3"] +,Para [Str "And",Space,Str "some",Space,Str "text"]] |