@@ -1060,7 +1060,7 @@ main = do
1060 Left err' -> err 43 $ toString err'
1060 Left err' -> err 43 $ toString err'
1062 | htmlFormat && ascii ->
1062 | htmlFormat && ascii ->
1063− writerFn outputFile =<< selfcontain (toEntities result)
1063+ writerFn outputFile . toEntities =<< selfcontain result
1064 | otherwise ->
1064 | otherwise ->
1065 writerFn outputFile =<< selfcontain result
1065 writerFn outputFile =<< selfcontain result
1066 where result = w writerOptions doc2 ++ ['\n' | not standalone']
1066 where result = w writerOptions doc2 ++ ['\n' | not standalone']