aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-01-28 02:59:06 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-01-28 03:18:29 +0300
commit248f6076bc1df7f3dd55d7402707233ae08d3cdb (patch)
treeb629afda755361383e33f143abdda796e77e6271 /test
parent75762ee0dc30e10befd1072a7ad182d92e4f5680 (diff)
downloadpandoc-248f6076bc1df7f3dd55d7402707233ae08d3cdb.tar.gz
Muse reader: fix parsing of trailing whitespace
Newline after whitespace now results in softbreak instead of space.
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Readers/Muse.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs
index 0ceed0322..d93704e08 100644
--- a/test/Tests/Readers/Muse.hs
+++ b/test/Tests/Readers/Muse.hs
@@ -119,6 +119,12 @@ tests =
, "Linebreak" =: "Line <br> break" =?> para ("Line" <> linebreak <> "break")
+ , "Trailing whitespace inside paragraph" =:
+ T.unlines [ "First line " -- trailing whitespace here
+ , "second line"
+ ]
+ =?> para "First line\nsecond line"
+
, "Non-breaking space" =: "Foo~~bar" =?> para "Foo\160bar"
, "Single ~" =: "Foo~bar" =?> para "Foo~bar"