aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-02-05 11:27:25 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2011-02-05 11:27:25 -0800
commit79a0fbe146bccc625fc6fffe57464a418f54703c (patch)
treeb612456adaba5c16020d948da8573d3f2a5e5aef /src/Text/Pandoc/Writers
parentcbe162ecbe7ee0df08dd843360c803a2cedf1c73 (diff)
downloadpandoc-79a0fbe146bccc625fc6fffe57464a418f54703c.tar.gz
HTML writer: Put line breaks in section divs.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index aba73a417..1faeeea80 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -245,9 +245,11 @@ elementToHtml opts (Sec level num id' title' elements) = do
else if writerSectionDivs opts
then if writerHtml5 opts
then tag "section" ! [prefixedId opts id']
- << intersperse (nl opts) stuff
+ << (nl opts : (intersperse (nl opts) stuff
+ ++ [nl opts]))
else thediv ! [prefixedId opts id'] <<
- intersperse (nl opts) stuff
+ (nl opts : (intersperse (nl opts) stuff
+ ++ [nl opts]))
else toHtmlFromList $ intersperse (nl opts) stuff
-- | Convert list of Note blocks to a footnote <div>.