aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-02-05 00:50:31 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-02-05 01:39:38 +0300
commit6c45f8c8f6db57536db95a040ab30aae75684321 (patch)
tree90141884fcb593cd7a194f41d31bb5db13ad2423 /test
parent3b667c54eaa76669357b76db0641851002c58b01 (diff)
downloadpandoc-6c45f8c8f6db57536db95a040ab30aae75684321.tar.gz
Muse reader: test that two blank lines after verse can separate list items
Unlike paragraph and <quote> tag parsers, verse parser consumes newline. For this reason only three or more blank lines can separate list items.
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Readers/Muse.hs21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs
index 5cdc2c302..1be73ea5c 100644
--- a/test/Tests/Readers/Muse.hs
+++ b/test/Tests/Readers/Muse.hs
@@ -929,6 +929,27 @@ tests =
, " - bar"
] =?>
bulletList [ blockQuote $ para "foo" ] <> bulletList [ para "bar" ]
+ , "No blank line after verse" =:
+ T.unlines
+ [ " - > foo"
+ , " - bar"
+ ] =?>
+ bulletList [ lineBlock [ "foo" ], para "bar" ]
+ , "One blank line after verse" =:
+ T.unlines
+ [ " - > foo"
+ , ""
+ , " - bar"
+ ] =?>
+ bulletList [ lineBlock [ "foo" ], para "bar" ]
+ , "Two blank lines after verse" =:
+ T.unlines
+ [ " - > foo"
+ , ""
+ , ""
+ , " - bar"
+ ] =?>
+ bulletList [ lineBlock [ "foo" ] ] <> bulletList [ para "bar" ]
]
-- Test that definition list requires a leading space.
-- Emacs Muse does not require a space, we follow Amusewiki here.