aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-12-17 11:09:00 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-12-17 11:59:52 -0800
commit20cf4e47b069f76839b4223cbfecbf96875aadb4 (patch)
treec809a41a5666c2a74a24d09fe3f5979e0402656f /src/Text/Pandoc/Writers
parent11bab77120010f205452e899c0d93d638638261a (diff)
downloadpandoc-20cf4e47b069f76839b4223cbfecbf96875aadb4.tar.gz
Improved makeSections so we don't get doubled attributes.
Closes #5986.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index 4d8a6b961..784606dd5 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -663,7 +663,8 @@ blockToHtml opts (Div (ident, "section":dclasses, dkvs)
(z:zs) -> ([],z ++ concatMap inDiv zs)
titleContents <- blockListToHtml opts titleBlocks
innerContents <- blockListToHtml opts innerSecs
- let classes' = ["title-slide" | titleSlide] ++ ["slide" | slide] ++
+ let classes' = ordNub $
+ ["title-slide" | titleSlide] ++ ["slide" | slide] ++
["section" | (slide || writerSectionDivs opts) &&
not html5 ] ++
["level" <> tshow level | slide || writerSectionDivs opts ]