jenkins-bot submitted this change.
[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.