diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-06-20 22:43:48 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-06-20 22:43:48 +0200 |
commit | c349f0b0baef5866041b6668fff5bbb16f0002f9 (patch) | |
tree | 09f8bf2c95b3e66c1eff98ef9756c6503a2032b8 /src/Text/Pandoc/Writers/OPML.hs | |
parent | 21c4281b13bf2d72012139ecc5c16cf7cae21de1 (diff) | |
download | pandoc-c349f0b0baef5866041b6668fff5bbb16f0002f9.tar.gz |
Writers: adjusted for renderTemplate' changes.
Now we raise a proper error on template failure.
Diffstat (limited to 'src/Text/Pandoc/Writers/OPML.hs')
-rw-r--r-- | src/Text/Pandoc/Writers/OPML.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Writers/OPML.hs b/src/Text/Pandoc/Writers/OPML.hs index 4a0a317fa..52577ac17 100644 --- a/src/Text/Pandoc/Writers/OPML.hs +++ b/src/Text/Pandoc/Writers/OPML.hs @@ -60,9 +60,9 @@ writeOPML opts (Pandoc meta blocks) = do meta' main <- (render colwidth . vcat) <$> (mapM (elementToOPML opts) elements) let context = defField "body" main metadata - return $ case writerTemplate opts of - Nothing -> main - Just tpl -> renderTemplate' tpl context + case writerTemplate opts of + Nothing -> return main + Just tpl -> renderTemplate' tpl context writeHtmlInlines :: PandocMonad m => [Inline] -> m Text |