git.iko.soy/typeable/pandoc
on master help sign in
pandoc.hs : changed a couple `writerName` to `writerName'`.
41eded5John MacFarlane
src/pandoc.hs+2−2
@@ -849,7 +849,7 @@ main = do
849 writerAscii = ascii }
849 writerAscii = ascii }
850
850
851 when (isNonTextOutput writerName' && outputFile == "-") $
851 when (isNonTextOutput writerName' && outputFile == "-") $
852− do UTF8.hPutStrLn stderr ("Error: Cannot write " ++ writerName ++ " output to stdout.\n" ++
852+ do UTF8.hPutStrLn stderr ("Error: Cannot write " ++ writerName' ++ " output to stdout.\n" ++
853 "Specify an output file using the -o option.")
853 "Specify an output file using the -o option.")
854 exitWith $ ExitFailure 5
854 exitWith $ ExitFailure 5
855
855
@@ -902,7 +902,7 @@ main = do
902 writerFn f = UTF8.writeFile f
902 writerFn f = UTF8.writeFile f
903 result = r writerOptions doc2 ++ ['\n' | not standalone']
903 result = r writerOptions doc2 ++ ['\n' | not standalone']
904 htmlFormats = ["html","html+lhs","s5","slidy","dzslides"]
904 htmlFormats = ["html","html+lhs","s5","slidy","dzslides"]
905− postProcess = if selfContained && writerName `elem` htmlFormats
905+ postProcess = if selfContained && writerName' `elem` htmlFormats
906 then makeSelfContained datadir
906 then makeSelfContained datadir
907 else return
907 else return
908
908