From 38c02f698521131ea4d276a5d635327c72427b3f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 27 May 2015 21:19:59 -0700 Subject: Fixes to trypandoc fixes. --- trypandoc/trypandoc.hs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'trypandoc') diff --git a/trypandoc/trypandoc.hs b/trypandoc/trypandoc.hs index 210bab49f..ef4d27492 100644 --- a/trypandoc/trypandoc.hs +++ b/trypandoc/trypandoc.hs @@ -1,4 +1,4 @@ -{-# LANGUAGE OverloadedStrings, CPP #-} +{-# LANGUAGE OverloadedStrings #-} module Main where import Network.Wai.Handler.CGI import Network.Wai @@ -29,13 +29,9 @@ app req respond = do $ lookup fromFormat fromFormats let writer = maybe (error $ "could not find writer for " ++ T.unpack toFormat) id $ lookup toFormat toFormats -#if MIN_VERSION_pandoc(1,14,0) let result = case reader $ tabFilter 4 $ T.unpack text of Right doc -> T.pack $ writer doc Left err -> error (show err) -#else - let result = T.pack $ writer $ reader $ tabFilter 4 $ T.unpack text -#endif let output = encode $ object [ T.pack "result" .= result , T.pack "name" .= if fromFormat == "markdown_strict" -- cgit v1.2.3