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.
This commit is contained in:
Alexander Krotov 2018-02-05 00:50:31 +03:00
parent 3b667c54ea
commit 6c45f8c8f6

View file

@ -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.