From 367e8cac18924f8cd9898f84f25c56bd2ae3b744 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Wed, 14 Nov 2018 19:17:05 +0300 Subject: Muse reader: trim whitespace before parsing grid table cells --- test/Tests/Readers/Muse.hs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test') diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs index 0f9f2d92f..26720d8c5 100644 --- a/test/Tests/Readers/Muse.hs +++ b/test/Tests/Readers/Muse.hs @@ -1019,6 +1019,17 @@ tests = [[table mempty [(AlignDefault, 0.0)] [] [[para "foo"]]]] + , "Grid table with example" =: + T.unlines + [ "+------------+" + , "| |" + , "| foo |" + , "| |" + , "+------------+" + ] =?> + table mempty [(AlignDefault, 0.0)] + [] + [[codeBlock "foo"]] ] , testGroup "Lists" [ "Bullet list" =: -- cgit v1.2.3