Muse writer: indent lists inside Div

This commit is contained in:
Alexander Krotov 2018-01-22 16:24:44 +03:00
parent b818623d42
commit 288065cfd4
2 changed files with 4 additions and 2 deletions

View file

@ -259,7 +259,7 @@ blockToMuse (Table caption _ _ headers rows) = do
$$ body
$$ (if null caption then empty else " |+ " <> caption' <> " +|")
$$ blankline
blockToMuse (Div _ bs) = blockListToMuse bs
blockToMuse (Div _ bs) = flatBlockListToMuse bs
blockToMuse Null = return empty
-- | Return Muse representation of notes.

View file

@ -282,7 +282,9 @@ tests = [ testGroup "block elements"
, " |+ Table 1 +|"
]
]
-- Div is trivial
, "div with bullet list" =:
divWith nullAttr (bulletList [para $ text "foo"]) =?>
unlines [ " - foo" ] -- Making sure bullets are indented
-- Null is trivial
]
, testGroup "inline elements"