jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/589558 )
Change subject: [bugfix] Do not removeUselessSpaces inside source/syntaxhighlight tags
......................................................................
[bugfix] Do not removeUselessSpaces inside source/syntaxhighlight tags
Bug: T250469
Change-Id: I86f6fc9794666e38674ed6d155166fc7bead2128
---
M pywikibot/cosmetic_changes.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Dvorapa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/cosmetic_changes.py b/pywikibot/cosmetic_changes.py
index ae993b9..7aad15e 100755
--- a/pywikibot/cosmetic_changes.py
+++ b/pywikibot/cosmetic_changes.py
@@ -682,7 +682,7 @@
def removeUselessSpaces(self, text):
"""Cleanup multiple or trailing spaces."""
exceptions = ['comment', 'math', 'nowiki', 'pre',
'startspace',
- 'table']
+ 'source', 'table']
if self.site.sitename != 'wikipedia:cs':
exceptions.append('template')
text = textlib.replaceExcept(text, r'(?m)[\t ]+( |$)', r'\1',
--
To view, visit
https://gerrit.wikimedia.org/r/589558
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: I86f6fc9794666e38674ed6d155166fc7bead2128
Gerrit-Change-Number: 589558
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: jenkins-bot (75)