Modified prettyPandoc to handle DefinitionList elements.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@565 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
parent
68cd976838
commit
0ce965f34c
1 changed files with 4 additions and 0 deletions
|
@ -190,6 +190,10 @@ prettyBlock (OrderedList blockLists) =
|
|||
prettyBlock (BulletList blockLists) = "BulletList\n" ++
|
||||
indentBy 2 0 ("[ " ++ (joinWithSep ", "
|
||||
(map (\blocks -> prettyBlockList 2 blocks) blockLists))) ++ " ]"
|
||||
prettyBlock (DefinitionList blockLists) = "DefinitionList\n" ++
|
||||
indentBy 2 0 ("[ " ++ (joinWithSep ", "
|
||||
(map (\(term, blocks) -> "(" ++ show term ++ ",\n" ++
|
||||
indentBy 1 2 (prettyBlockList 2 blocks) ++ ")") blockLists))) ++ " ]"
|
||||
prettyBlock block = show block
|
||||
|
||||
-- | Prettyprint Pandoc document.
|
||||
|
|
Loading…
Reference in a new issue