git.iko.soy/typeable/pandoc
on master help sign in
Docx reader: add tests for trimming last inline.
commit9a1a3fe482dde2f5d2a2e86489dd4006bd861025 authorJesse Rosenthal <jrosenthal@jhu.edu> dateMon 18 Feb 2019, 15:49 (8 years ago) parentbeda70b
3 files changed+6
test/Tests/Readers/Docx.hs+4 test/docx/trim_last_inline.docx test/docx/trim_last_inline.native+2
test/Tests/Readers/Docx.hs+4
@@ -185,6 +185,10 @@ tests = [ testGroup "document"
185185 "move trailing spaces outside of formatting"
186186 "docx/trailing_spaces_in_formatting.docx"
187187 "docx/trailing_spaces_in_formatting.native"
188+ , testCompare
189+ "remove trailing spaces from last inline"
190+ "docx/trim_last_inline.docx"
191+ "docx/trim_last_inline.native"
188192 , testCompare
189193 "inline code (with VerbatimChar style)"
190194 "docx/inline_code.docx"
test/docx/trim_last_inline.docxnew file

Binary file not shown.

test/docx/trim_last_inline.nativenew file+2
@@ -0,0 +1,2 @@
1+[Para [Strong [Str "Foo",Space,Str "bar."]]
2+,Para [Str "Fizz",Space,Str "pop."]]