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
refactor chm_htmlescape() #5862
Conversation
tests/test_build_htmlhelp.py
Outdated
|
||
if PY2: | ||
assert chm_htmlescape("Hello 'world'") == "Hello 'world'" | ||
assert chm_htmlescape("Hello 'world'", True) == "Hello 'world'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new behavior on py2. At present, it works only for .hhc file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just reverted this. It's too much.
4a812f6
to
4288c41
Compare
Codecov Report
@@ Coverage Diff @@
## 1.8 #5862 +/- ##
==========================================
+ Coverage 82.08% 82.09% +0.01%
==========================================
Files 301 307 +6
Lines 40160 40521 +361
Branches 6201 6258 +57
==========================================
+ Hits 32964 33266 +302
- Misses 5817 5870 +53
- Partials 1379 1385 +6
Continue to review full report at Codecov.
|
Maybe we should also change Imagine someone building a .chm using Python2, and a quote |
@animalize Absolutely! |
4288c41
to
df7c825
Compare
df7c825
to
6ffe549
Compare
f.write(item) | ||
title = chm_htmlescape(title) | ||
title = chm_htmlescape(title, True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I add 2nd argument to fix the bug. see CHANGES.
I put this |
Thank you for reviewing! Merging now. |
Feature or Bugfix
Purpose