Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ascii and self-contained options conflict #568

Closed
trism opened this issue Jul 14, 2012 · 0 comments
Closed

ascii and self-contained options conflict #568

trism opened this issue Jul 14, 2012 · 0 comments

Comments

@trism
Copy link

trism commented Jul 14, 2012

Copying an example from https://bugs.launchpad.net/ubuntu/+source/pandoc/+bug/1024754

(Edit: see the example on the linked launchpad bug, github doesn't like it)

With the third command we still have the curly quotes instead of entities. I tracked this down to src/pandoc.hs where:

| htmlFormat && ascii ->
writerFn outputFile =<< selfcontain (toEntities result)

seems to want to do the right thing, but selfcontain removes the entities toEntities added. Flipping this around:

| htmlFormat && ascii -> do
result' <- selfcontain result
writerFn outputFile =<< return (toEntities result')

seems to work and give the desired result.

@jgm jgm closed this as completed in 5be6bf0 Jul 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants