jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/435145 )
Change subject: [bugfix] Ignore spaces in templates in resolveHtmlEntities ......................................................................
[bugfix] Ignore spaces in templates in resolveHtmlEntities
See: https://cs.wikipedia.org/w/index.php?title=%C5%A0ablona:NotNulStrict&dif...
Change-Id: I0c3d019e7ebb6c81e7d8497d2cd0a42475b68287 --- M pywikibot/cosmetic_changes.py 1 file changed, 1 insertion(+), 0 deletions(-)
Approvals: Matěj Suchánek: Looks good to me, but someone else must approve Xqt: Looks good to me, approved jenkins-bot: Verified
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
pywikibot-commits@lists.wikimedia.org