jenkins-bot merged this change.

View Change

Approvals: Matěj Suchánek: Looks good to me, but someone else must approve Xqt: Looks good to me, approved jenkins-bot: Verified
[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.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I0c3d019e7ebb6c81e7d8497d2cd0a42475b68287
Gerrit-Change-Number: 435145
Gerrit-PatchSet: 2
Gerrit-Owner: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: Dalba <dalba.wiki@gmail.com>
Gerrit-Reviewer: Framawiki <framawiki@tools.wmflabs.org>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444@gmail.com>
Gerrit-Reviewer: jenkins-bot <>