Muse writer: indent lists inside Div
This commit is contained in:
parent
b818623d42
commit
288065cfd4
2 changed files with 4 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue