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:
parent
e77c218fbc
commit
42f0b0cdab
1 changed files with 1 additions and 2 deletions
|
@ -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 <>
|
||||
|
|
Loading…
Add table
Reference in a new issue