HTML writer: Put line breaks in section divs.
This commit is contained in:
parent
cbe162ecbe
commit
79a0fbe146
1 changed files with 4 additions and 2 deletions
|
@ -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>.
|
||||
|
|
Loading…
Reference in a new issue