@@ -849,7 +849,7 @@ main = do
849849 writerAscii = ascii }
850850
851851 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" ++
853853 "Specify an output file using the -o option.")
854854 exitWith $ ExitFailure 5
855855
@@ -902,7 +902,7 @@ main = do
902902 writerFn f = UTF8.writeFile f
903903 result = r writerOptions doc2 ++ ['\n' | not standalone']
904904 htmlFormats = ["html","html+lhs","s5","slidy","dzslides"]
905− postProcess = if selfContained && writerName `elem` htmlFormats
905+ postProcess = if selfContained && writerName' `elem` htmlFormats
906906 then makeSelfContained datadir
907907 else return
908908