Fix rebasing errors.
This commit is contained in:
parent
d5051ae101
commit
c4c56b8c04
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue