diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-02-04 21:05:48 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-02-04 21:05:48 -0800 |
commit | ce4f9a378703ad8043bec19722399b5d4b78f162 (patch) | |
tree | f67d8300beaf3ac5149222597fd1c8b5217b09c4 /src/Text | |
parent | 90647a56f6a742e7ecc1cec44042e256ff94b802 (diff) | |
download | pandoc-ce4f9a378703ad8043bec19722399b5d4b78f162.tar.gz |
HTML writer: Spacing adjustments for Plain and RawHtml blocks.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Writers/HTML.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index fe6bede09..637f8744f 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -317,6 +317,8 @@ attrsToHtml opts (id',classes',keyvals) = -- | Convert Pandoc block element to HTML. blockToHtml :: WriterOptions -> Block -> State WriterState Html +blockToHtml opts b@(Plain _) = blockToHtml' opts b +blockToHtml opts b@(RawBlock _ _) = blockToHtml' opts b blockToHtml opts b = blockToHtml' opts b >>= return . (nl opts +++) blockToHtml' :: WriterOptions -> Block -> State WriterState Html |