From 40796972812fe7a29d04eb430bee704383736221 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Tue, 13 Nov 2018 18:43:46 +0300 Subject: Muse writer: output tables with one column as grid tables --- test/Tests/Writers/Muse.hs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/Tests/Writers') diff --git a/test/Tests/Writers/Muse.hs b/test/Tests/Writers/Muse.hs index c6ebac771..6cf718c0b 100644 --- a/test/Tests/Writers/Muse.hs +++ b/test/Tests/Writers/Muse.hs @@ -400,6 +400,18 @@ tests = [ testGroup "block elements" , " Para 2.1 | Para 2.2" , " |+ Table 1 +|" ] + , "table with one column" =: + let headers = [] + rows = [[para "Para 1"] + ,[para "Para 2"]] + in simpleTable headers rows + =?> + unlines [ "+--------+" + , "| Para 1 |" + , "+--------+" + , "| Para 2 |" + , "+--------+" + ] ] , "div with bullet list" =: divWith nullAttr (bulletList [para "foo"]) =?> -- cgit v1.2.3