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.
This commit is contained in:
Jesse Rosenthal 2014-06-23 15:40:34 -04:00
parent 8517a4f2e5
commit 9b954fa855
3 changed files with 5 additions and 0 deletions

View file

@ -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

Binary file not shown.

View file

@ -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."]]