diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-10-04 21:56:29 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-10-04 21:56:29 -0700 |
commit | 869e800bbbe4008beeb3e3420e689aafd6e67aa7 (patch) | |
tree | fcca43e20faa967041fdf725c45088295a8462f2 /tests | |
parent | e32ab441bee323e3a2c6fced7c89bf0c6351d6c8 (diff) | |
parent | dfd06467eadace7b37cb3ebc53c943755d0436eb (diff) | |
download | pandoc-869e800bbbe4008beeb3e3420e689aafd6e67aa7.tar.gz |
Merge pull request #2432 from hftf/hyphens
Docx Reader: Parse soft and non-breaking hyphen elements
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Tests/Readers/Docx.hs | 4 | ||||
-rw-r--r-- | tests/docx/special_punctuation.docx | bin | 0 -> 8408 bytes | |||
-rw-r--r-- | tests/docx/special_punctuation.native | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/tests/Tests/Readers/Docx.hs b/tests/Tests/Readers/Docx.hs index 47292bc99..7e3f1979e 100644 --- a/tests/Tests/Readers/Docx.hs +++ b/tests/Tests/Readers/Docx.hs @@ -131,6 +131,10 @@ tests = [ testGroup "inlines" "docx/tabs.docx" "docx/tabs.native" , testCompare + "special punctuation" + "docx/special_punctuation.docx" + "docx/special_punctuation.native" + , testCompare "normalizing inlines" "docx/normalize.docx" "docx/normalize.native" diff --git a/tests/docx/special_punctuation.docx b/tests/docx/special_punctuation.docx Binary files differnew file mode 100644 index 000000000..8e0bb55c9 --- /dev/null +++ b/tests/docx/special_punctuation.docx diff --git a/tests/docx/special_punctuation.native b/tests/docx/special_punctuation.native new file mode 100644 index 000000000..304289f44 --- /dev/null +++ b/tests/docx/special_punctuation.native @@ -0,0 +1,2 @@ +[Para [Str "Soft",Space,Str "hyphen:",Space,Str "[\173]"] +,Para [Str "Non-breaking",Space,Str "hyphen:",Space,Str "[\8209]"]] |