jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/606968 )
Change subject: [bugfix] escape delete char 127 in UnicodeToAsciiHtml function
......................................................................
[bugfix] escape delete char 127 in UnicodeToAsciiHtml function
Delete char 127 should be escaped to  because it is not a
visible character but an ascii command character
Change-Id: I65ea32bb5cf77aee331a6c0bfe966feb98c16b5e
---
M pywikibot/page/__init__.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Matěj Suchánek: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/page/__init__.py b/pywikibot/page/__init__.py
index acf6a99..422fc83 100644
--- a/pywikibot/page/__init__.py
+++ b/pywikibot/page/__init__.py
@@ -6864,7 +6864,7 @@
html = []
for c in s:
cord = ord(c)
- if 31 < cord < 128:
+ if 31 < cord < 127:
html.append(c)
else:
html.append('&#%d;' % cord)
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/606968
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I65ea32bb5cf77aee331a6c0bfe966feb98c16b5e
Gerrit-Change-Number: 606968
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Huji <huji.huji(a)gmail.com>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged