jenkins-bot merged this change.
[bugfix] Ignore spaces in templates in resolveHtmlEntities
See:
https://cs.wikipedia.org/w/index.php?title=%C5%A0ablona:NotNulStrict&diff=prev&oldid=16111715&diffmode=source
Change-Id: I0c3d019e7ebb6c81e7d8497d2cd0a42475b68287
---
M pywikibot/cosmetic_changes.py
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/pywikibot/cosmetic_changes.py b/pywikibot/cosmetic_changes.py
index 7752809..c52042c 100755
--- a/pywikibot/cosmetic_changes.py
+++ b/pywikibot/cosmetic_changes.py
@@ -636,6 +636,7 @@
8207, # Right-to-left mark (&rtl;)
]
if self.template:
+ ignore += [32] # Space ( )
ignore += [58] # Colon (:)
text = pywikibot.html2unicode(text, ignore=ignore, exceptions=['code'])
return text
To view, visit change 435145. To unsubscribe, visit settings.