Fix regression with --number-sections.

Starting with 2.8, `--number-sections` also had the
effect of `--section-divs`, even if `--section-divs` was
not specified.
This commit is contained in:
John MacFarlane 2019-12-21 09:20:07 -08:00
parent e77c218fbc
commit 42f0b0cdab

View file

@ -684,8 +684,7 @@ blockToHtml opts (Div (ident, "section":dclasses, dkvs)
else id) $ t <> if null innerSecs
then mempty
else nl opts <> innerContents
else if writerSectionDivs opts || slide || not (null dclasses) ||
not (null dkvs)
else if writerSectionDivs opts || slide || not (null dclasses)
then addAttrs opts attr
$ secttag
$ nl opts <> header' <> nl opts <>