aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2016-12-02 07:27:42 -0500
committerJohn MacFarlane <jgm@berkeley.edu>2017-01-25 17:07:40 +0100
commitc4c56b8c0471b5051d334e8ccc3f2e6cb1efbf13 (patch)
tree3210df78890276ff8f7e9fc43139d2eeb7c7fcb9 /src/Text
parentd5051ae1015f2fdb39d034b566c1296d066ad8bf (diff)
downloadpandoc-c4c56b8c0471b5051d334e8ccc3f2e6cb1efbf13.tar.gz
Fix rebasing errors.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Writers/FB2.hs2
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/FB2.hs b/src/Text/Pandoc/Writers/FB2.hs
index 2401d7eee..20af67b62 100644
--- a/src/Text/Pandoc/Writers/FB2.hs
+++ b/src/Text/Pandoc/Writers/FB2.hs
@@ -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
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index 4c8ccfe4a..b2b0865bf 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -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