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
|
-> Pandoc
|
||||||
-> FBM m String
|
-> FBM m String
|
||||||
pandocToFB2 opts (Pandoc meta blocks) = do
|
pandocToFB2 opts (Pandoc meta blocks) = do
|
||||||
modify (\s -> s { writerOptions = opts { writerOptions = opts } })
|
modify (\s -> s { writerOptions = opts })
|
||||||
desc <- description meta
|
desc <- description meta
|
||||||
fp <- frontpage meta
|
fp <- frontpage meta
|
||||||
secs <- renderSections 1 blocks
|
secs <- renderSections 1 blocks
|
||||||
|
|
|
@ -115,7 +115,7 @@ writeHtml :: PandocMonad m => WriterOptions -> Pandoc -> m Html
|
||||||
writeHtml opts d = do
|
writeHtml opts d = do
|
||||||
(body, context) <- evalStateT (pandocToHtml opts d) defaultWriterState
|
(body, context) <- evalStateT (pandocToHtml opts d) defaultWriterState
|
||||||
return $ case writerTemplate opts of
|
return $ case writerTemplate opts of
|
||||||
Nothing -> renderHtml body
|
Nothing -> body
|
||||||
Just tpl -> renderTemplate' tpl $
|
Just tpl -> renderTemplate' tpl $
|
||||||
defField "body" (renderHtml body) context
|
defField "body" (renderHtml body) context
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue