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:
parent
8517a4f2e5
commit
9b954fa855
3 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
BIN
tests/docx.trailing_spaces_in_formatting.docx
Normal file
BIN
tests/docx.trailing_spaces_in_formatting.docx
Normal file
Binary file not shown.
1
tests/docx.trailing_spaces_in_formatting.native
Normal file
1
tests/docx.trailing_spaces_in_formatting.native
Normal 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."]]
|
Loading…
Add table
Reference in a new issue