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

chm compiler can't deal with hex escaping #5846

Closed
ghost opened this issue Dec 21, 2018 · 0 comments
Closed

chm compiler can't deal with hex escaping #5846

ghost opened this issue Dec 21, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 21, 2018

Problem

If hex escaping (e.g. ') appears in .hhc/.hhk files, chm compiler will simply ignore it.

Sadly, Python 3's html.escape(s, quote=True) function generates a hex escaping ' for single quote '.

This leading to a compiling issue for Python chm document, please see: https://bugs.python.org/issue35482

Suggestion

htmlhelp builder uses html.escape() twice [1] [2] for .hhc/.hhk files, we can make a wrapper function for html.escape() that convert hex escaping to decimal escaping, e.g. ' -> '

Environment info

  • OS: Win
  • Python version: any
  • Sphinx version: 1.8.2 / 2.0
  • Microsoft HTML Help Compiler: 4.74.8702
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant