Merge pull request #2532 from michaelbeaumont/fix-2530
Interpret pauses correctly for all headers
This commit is contained in:
commit
1ad296dc69
1 changed files with 3 additions and 5 deletions
|
@ -305,11 +305,9 @@ elementToHtml slideLevel opts (Sec level num (id',classes,keyvals) title' elemen
|
||||||
$ if titleSlide
|
$ if titleSlide
|
||||||
-- title slides have no content of their own
|
-- title slides have no content of their own
|
||||||
then filter isSec elements
|
then filter isSec elements
|
||||||
else if slide
|
else case splitBy isPause elements of
|
||||||
then case splitBy isPause elements of
|
|
||||||
[] -> []
|
[] -> []
|
||||||
(x:xs) -> x ++ concatMap inDiv xs
|
(x:xs) -> x ++ concatMap inDiv xs
|
||||||
else elements
|
|
||||||
let inNl x = mconcat $ nl opts : intersperse (nl opts) x ++ [nl opts]
|
let inNl x = mconcat $ nl opts : intersperse (nl opts) x ++ [nl opts]
|
||||||
let classes' = ["titleslide" | titleSlide] ++ ["slide" | slide] ++
|
let classes' = ["titleslide" | titleSlide] ++ ["slide" | slide] ++
|
||||||
["section" | (slide || writerSectionDivs opts) &&
|
["section" | (slide || writerSectionDivs opts) &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue