Fix rebasing errors.

This commit is contained in:
Jesse Rosenthal 2016-12-02 07:27:42 -05:00 committed by John MacFarlane
parent d5051ae101
commit c4c56b8c04
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ pandocToFB2 :: PandocMonad m
-> Pandoc
-> FBM m String
pandocToFB2 opts (Pandoc meta blocks) = do
modify (\s -> s { writerOptions = opts { writerOptions = opts } })
modify (\s -> s { writerOptions = opts })
desc <- description meta
fp <- frontpage meta
secs <- renderSections 1 blocks

View file

@ -115,7 +115,7 @@ writeHtml :: PandocMonad m => WriterOptions -> Pandoc -> m Html
writeHtml opts d = do
(body, context) <- evalStateT (pandocToHtml opts d) defaultWriterState
return $ case writerTemplate opts of
Nothing -> renderHtml body
Nothing -> body
Just tpl -> renderTemplate' tpl $
defField "body" (renderHtml body) context