diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2014-06-23 15:40:34 -0400 |
---|---|---|
committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2014-06-23 17:08:26 -0400 |
commit | 9b954fa855158d99b4ddba7c3ffe7f2fed7ce25f (patch) | |
tree | 78cf9fd086d7e7ffc1ed3ada59cf537741b9f3b5 /tests | |
parent | 8517a4f2e59dc2ecf20a96eedfa5b2cc47f0aeba (diff) | |
download | pandoc-9b954fa855158d99b4ddba7c3ffe7f2fed7ce25f.tar.gz |
Add test for correctly trimming spaces in formatting.
This used to be fixed in the tree-walking. We need to make sure we're doing it
right now.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Tests/Readers/Docx.hs | 4 | ||||
-rw-r--r-- | tests/docx.trailing_spaces_in_formatting.docx | bin | 0 -> 12916 bytes | |||
-rw-r--r-- | tests/docx.trailing_spaces_in_formatting.native | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/tests/Tests/Readers/Docx.hs b/tests/Tests/Readers/Docx.hs index ffb079eee..a42dc31e9 100644 --- a/tests/Tests/Readers/Docx.hs +++ b/tests/Tests/Readers/Docx.hs @@ -82,6 +82,10 @@ tests = [ testGroup "inlines" "normalizing inlines deep inside blocks" "docx.deep_normalize.docx" "docx.deep_normalize.native" + , testCompare + "move trailing spaces outside of formatting" + "docx.trailing_spaces_in_formatting.docx" + "docx.trailing_spaces_in_formatting.native" ] , testGroup "blocks" [ testCompare diff --git a/tests/docx.trailing_spaces_in_formatting.docx b/tests/docx.trailing_spaces_in_formatting.docx Binary files differnew file mode 100644 index 000000000..ebe7404a9 --- /dev/null +++ b/tests/docx.trailing_spaces_in_formatting.docx diff --git a/tests/docx.trailing_spaces_in_formatting.native b/tests/docx.trailing_spaces_in_formatting.native new file mode 100644 index 000000000..46ea9bca8 --- /dev/null +++ b/tests/docx.trailing_spaces_in_formatting.native @@ -0,0 +1 @@ +[Para [Str "Turn",Space,Str "my",Space,Emph [Str "formatting"],Space,Str "off",Space,Str "after",Space,Str "the",Space,Str "spaces."]] |