aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Readers/Docx.hs4
-rw-r--r--test/docx/trim_last_inline.docxbin0 -> 4179 bytes
-rw-r--r--test/docx/trim_last_inline.native2
3 files changed, 6 insertions, 0 deletions
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
@@ -186,6 +186,10 @@ tests = [ testGroup "document"
"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"
"docx/inline_code.native"
diff --git a/test/docx/trim_last_inline.docx b/test/docx/trim_last_inline.docx
new file mode 100644
index 000000000..bb3755154
--- /dev/null
+++ b/test/docx/trim_last_inline.docx
Binary files 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."]]