aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-11-19 21:06:53 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-11-19 21:06:53 -0800
commit1ad296dc69d0e901ce26d446b57758feea5a52c6 (patch)
treece95ade15aa2eceb38af355ae8532a1f5f443a38 /src/Text/Pandoc/Writers
parentfdc81be7d266c082e8870b2f6a8d3243fa271184 (diff)
parent8b289326a720127ae03dcbfe6938543a4733dfba (diff)
downloadpandoc-1ad296dc69d0e901ce26d446b57758feea5a52c6.tar.gz
Merge pull request #2532 from michaelbeaumont/fix-2530
Interpret pauses correctly for all headers
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index 7e3f1c65a..626732ef2 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -305,11 +305,9 @@ elementToHtml slideLevel opts (Sec level num (id',classes,keyvals) title' elemen
$ if titleSlide
-- title slides have no content of their own
then filter isSec elements
- else if slide
- then case splitBy isPause elements of
- [] -> []
- (x:xs) -> x ++ concatMap inDiv xs
- else elements
+ else case splitBy isPause elements of
+ [] -> []
+ (x:xs) -> x ++ concatMap inDiv xs
let inNl x = mconcat $ nl opts : intersperse (nl opts) x ++ [nl opts]
let classes' = ["titleslide" | titleSlide] ++ ["slide" | slide] ++
["section" | (slide || writerSectionDivs opts) &&