diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2011-08-18 10:48:48 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2011-08-18 10:49:19 -0700 |
commit | f2fb733e0d7c287397e933571661988a71985765 (patch) | |
tree | 01ba93798d95efccb86a7c79ce63a11a24a2f005 /src/Text | |
parent | 54520c4e6f6f26d5dee21f97fc561ff69e03f883 (diff) | |
download | pandoc-f2fb733e0d7c287397e933571661988a71985765.tar.gz |
Templates: Return empty string for json template.
Thanks to Dirk Laurie for pointing out the bug.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Templates.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Templates.hs b/src/Text/Pandoc/Templates.hs index 19c9a808a..4a850fc6f 100644 --- a/src/Text/Pandoc/Templates.hs +++ b/src/Text/Pandoc/Templates.hs @@ -82,6 +82,7 @@ getDefaultTemplate :: (Maybe FilePath) -- ^ User data directory to search first -> String -- ^ Name of writer -> IO (Either E.IOException String) getDefaultTemplate _ "native" = return $ Right "" +getDefaultTemplate _ "json" = return $ Right "" getDefaultTemplate user "odt" = getDefaultTemplate user "opendocument" getDefaultTemplate user "epub" = getDefaultTemplate user "html" getDefaultTemplate user writer = do |