Slidy writer: Avoid spurious blank page.
This commit is contained in:
parent
a3051b8acb
commit
5fd1389263
1 changed files with 5 additions and 1 deletions
|
@ -112,10 +112,14 @@ pandocToHtml opts (Pandoc (Meta title' authors' date') blocks) = do
|
|||
Header 1 ys : cutUp xs
|
||||
cutUp (x:xs) = x : cutUp xs
|
||||
cutUp [] = []
|
||||
let preamble = case blocks of
|
||||
(HorizontalRule : _) -> []
|
||||
(Header 1 _ : _) -> []
|
||||
_ -> [RawHtml "<div class=\"slide\">\n"]
|
||||
blocks' <- liftM toHtmlFromList $
|
||||
case writerSlideVariant opts of
|
||||
SlidySlides -> mapM (blockToHtml opts) $
|
||||
RawHtml "<div class=\"slide\">\n" :
|
||||
preamble ++
|
||||
cutUp blocks ++
|
||||
[RawHtml "</div>"]
|
||||
_ -> mapM (elementToHtml opts) sects
|
||||
|
|
Loading…
Reference in a new issue