@@ -245,9 +245,11 @@ elementToHtml opts (Sec level num id' title' elements) = do
245 else if writerSectionDivs opts
245 else if writerSectionDivs opts
246 then if writerHtml5 opts
246 then if writerHtml5 opts
247 then tag "section" ! [prefixedId opts id']
247 then tag "section" ! [prefixedId opts id']
248− << intersperse (nl opts) stuff
248+ << (nl opts : (intersperse (nl opts) stuff
249 else thediv ! [prefixedId opts id'] <<
250 else thediv ! [prefixedId opts id'] <<
250− intersperse (nl opts) stuff
251+ (nl opts : (intersperse (nl opts) stuff
251 else toHtmlFromList $ intersperse (nl opts) stuff
253 else toHtmlFromList $ intersperse (nl opts) stuff
253-- | Convert list of Note blocks to a footnote <div>.
255-- | Convert list of Note blocks to a footnote <div>.