HTML writer: Put line breaks in section divs.

This commit is contained in:
John MacFarlane 2011-02-05 11:27:25 -08:00
parent cbe162ecbe
commit 79a0fbe146

View file

@ -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>.