jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/496745 )
Change subject: [IMPR] Cover more non-breaking spaces before percent sign
......................................................................
[IMPR] Cover more non-breaking spaces before percent sign
Change-Id: I5fe04bb6a98c6f8f44f2744a4aa99197b022819a
---
M pywikibot/cosmetic_changes.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Dvorapa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/cosmetic_changes.py b/pywikibot/cosmetic_changes.py
index 56d8011..7d35834 100755
--- a/pywikibot/cosmetic_changes.py
+++ b/pywikibot/cosmetic_changes.py
@@ -723,8 +723,8 @@
front of a percent sign, so it is no longer required to place it
manually.
"""
- text = textlib.replaceExcept(text, r'(\d) %', r'\1 %',
- ['timeline'])
+ text = textlib.replaceExcept(
+ text, r'(\d)&(?:nbsp|#160|#x[Aa]0);%', r'\1 %',
['timeline'])
return text
def cleanUpSectionHeaders(self, text):
--
To view, visit
https://gerrit.wikimedia.org/r/496745
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I5fe04bb6a98c6f8f44f2744a4aa99197b022819a
Gerrit-Change-Number: 496745
Gerrit-PatchSet: 1
Gerrit-Owner: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)