git.iko.soy/typeable/pandoc
on master help sign in
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.

commit9b954fa855158d99b4ddba7c3ffe7f2fed7ce25f authorJesse Rosenthal <jrosenthal@jhu.edu> dateMon 23 Jun 2014, 15:40 (12 years ago) parent8517a4f
3 files changed+5
tests/Tests/Readers/Docx.hs+4 tests/docx.trailing_spaces_in_formatting.docx tests/docx.trailing_spaces_in_formatting.native+1
tests/Tests/Readers/Docx.hs+4
@@ -82,6 +82,10 @@ tests = [ testGroup "inlines"
8282 "normalizing inlines deep inside blocks"
8383 "docx.deep_normalize.docx"
8484 "docx.deep_normalize.native"
85+ , testCompare
86+ "move trailing spaces outside of formatting"
87+ "docx.trailing_spaces_in_formatting.docx"
88+ "docx.trailing_spaces_in_formatting.native"
8589 ]
8690 , testGroup "blocks"
8791 [ testCompare
tests/docx.trailing_spaces_in_formatting.docxnew file

Binary file not shown.

tests/docx.trailing_spaces_in_formatting.nativenew file+1
@@ -0,0 +1 @@
1+[Para [Str "Turn",Space,Str "my",Space,Emph [Str "formatting"],Space,Str "off",Space,Str "after",Space,Str "the",Space,Str "spaces."]]