Skip to content

Commit

Permalink
Make --ascii work properly with --self-contained.
Browse files Browse the repository at this point in the history
Closes #568.
  • Loading branch information
John MacFarlane committed Jul 19, 2012
1 parent 2351f7a commit 5be6bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pandoc.hs
Expand Up @@ -1060,7 +1060,7 @@ main = do
Left err' -> err 43 $ toString err'
Just w
| htmlFormat && ascii ->
writerFn outputFile =<< selfcontain (toEntities result)
writerFn outputFile . toEntities =<< selfcontain result
| otherwise ->
writerFn outputFile =<< selfcontain result
where result = w writerOptions doc2 ++ ['\n' | not standalone']
Expand Down

0 comments on commit 5be6bf0

Please sign in to comment.