git.iko.soy/typeable/pandoc
on master help sign in
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.

commit42f0b0cdab19e73100d9b8fe91722290048a7b55 authorJohn MacFarlane <jgm@berkeley.edu> dateSat 21 Dec 2019, 09:20 (7 years ago) parente77c218
1 file changed+1−2
src/Text/Pandoc/Writers/HTML.hs+1−2
src/Text/Pandoc/Writers/HTML.hs+1−2
@@ -684,8 +684,7 @@ blockToHtml opts (Div (ident, "section":dclasses, dkvs)
684684 else id) $ t <> if null innerSecs
685685 then mempty
686686 else nl opts <> innerContents
687− else if writerSectionDivs opts || slide || not (null dclasses) ||
688− not (null dkvs)
687+ else if writerSectionDivs opts || slide || not (null dclasses)
689688 then addAttrs opts attr
690689 $ secttag
691690 $ nl opts <> header' <> nl opts <>