jenkins-bot submitted this change.

View Change

Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
[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(-)

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 change 606968. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I65ea32bb5cf77aee331a6c0bfe966feb98c16b5e
Gerrit-Change-Number: 606968
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Huji <huji.huji@gmail.com>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged