jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[bugfix] Do lookups with stripped fragments

Accidentally dropped in I802948afb.

Change-Id: Iee1e9d819830a54e4cef3d691b35d9c255b9ee84
---
M pywikibot/cosmetic_changes.py
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pywikibot/cosmetic_changes.py b/pywikibot/cosmetic_changes.py
index ff45c5f..740d5a1 100755
--- a/pywikibot/cosmetic_changes.py
+++ b/pywikibot/cosmetic_changes.py
@@ -472,7 +472,7 @@
# push ']]' out and re-add below
split[-1] = split[-1][:-2]
return '{}|{}]]'.format(
- split[0], '|'.join(cache.get(x, x) for x in split[1:]))
+ split[0], '|'.join(cache.get(x.strip(), x) for x in split[1:]))

cache = {}
exceptions = ['nowiki', 'comment', 'pre', 'source']

To view, visit change 612173. To unsubscribe, or for help writing mail filters, visit settings.

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