From 9a1a3fe482dde2f5d2a2e86489dd4006bd861025 Mon Sep 17 00:00:00 2001 From: Jesse Rosenthal Date: Mon, 18 Feb 2019 15:49:00 -0500 Subject: Docx reader: add tests for trimming last inline. --- test/Tests/Readers/Docx.hs | 4 ++++ test/docx/trim_last_inline.docx | Bin 0 -> 4179 bytes test/docx/trim_last_inline.native | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 test/docx/trim_last_inline.docx create mode 100644 test/docx/trim_last_inline.native diff --git a/test/Tests/Readers/Docx.hs b/test/Tests/Readers/Docx.hs index 25fde29b9..e5bbabadf 100644 --- a/test/Tests/Readers/Docx.hs +++ b/test/Tests/Readers/Docx.hs @@ -185,6 +185,10 @@ tests = [ testGroup "document" "move trailing spaces outside of formatting" "docx/trailing_spaces_in_formatting.docx" "docx/trailing_spaces_in_formatting.native" + , testCompare + "remove trailing spaces from last inline" + "docx/trim_last_inline.docx" + "docx/trim_last_inline.native" , testCompare "inline code (with VerbatimChar style)" "docx/inline_code.docx" diff --git a/test/docx/trim_last_inline.docx b/test/docx/trim_last_inline.docx new file mode 100644 index 000000000..bb3755154 Binary files /dev/null and b/test/docx/trim_last_inline.docx differ diff --git a/test/docx/trim_last_inline.native b/test/docx/trim_last_inline.native new file mode 100644 index 000000000..891574097 --- /dev/null +++ b/test/docx/trim_last_inline.native @@ -0,0 +1,2 @@ +[Para [Strong [Str "Foo",Space,Str "bar."]] +,Para [Str "Fizz",Space,Str "pop."]] -- cgit v1.2.3