aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2019-02-18 15:49:00 -0500
committerJesse Rosenthal <jrosenthal@jhu.edu>2019-02-18 15:49:00 -0500
commit9a1a3fe482dde2f5d2a2e86489dd4006bd861025 (patch)
treee8dac436d936961af1e3e55b87ca9627299c4ece
parentbeda70b92336ebc7d9c8bc0dcb3fafbc45dee0ff (diff)
downloadpandoc-9a1a3fe482dde2f5d2a2e86489dd4006bd861025.tar.gz
Docx reader: add tests for trimming last inline.
-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."]]