git.iko.soy/typeable/pandoc
on master help sign in
Beamer writer: fix regression with hrules separating slides.
commitbef124c98c3f2e9f9a5b1bb23c8bd8b2249a9de6 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 25 Oct 2019, 23:01 (7 years ago) parent4547911
1 file changed+3−3
src/Text/Pandoc/Writers/LaTeX.hs+3−3
src/Text/Pandoc/Writers/LaTeX.hs+3−3
@@ -169,8 +169,8 @@ pandocToLaTeX options (Pandoc meta blocks) = do
169169 _ -> (blocks', [])
170170 blocks''' <- if beamer
171171 then toSlides blocks''
172− else return blocks''
173− main <- blockListToLaTeX $ makeSections False Nothing blocks'''
172+ else return $ makeSections False Nothing blocks''
173+ main <- blockListToLaTeX blocks'''
174174 biblioTitle <- inlineListToLaTeX lastHeader
175175 st <- get
176176 titleMeta <- stringToLaTeX TextString $ stringify $ docTitle meta
@@ -451,7 +451,7 @@ toSlides bs = do
451451 opts <- gets stOptions
452452 let slideLevel = fromMaybe (getSlideLevel bs) $ writerSlideLevel opts
453453 let bs' = prepSlides slideLevel bs
454− walkM (elementToBeamer slideLevel) (makeSections False Nothing bs')
454+ walkM (elementToBeamer slideLevel) $ makeSections False Nothing bs'
455455
456456-- this creates section slides and marks slides with class "slide","block"
457457elementToBeamer :: PandocMonad m => Int -> Block -> LW m Block