jenkins-bot has submitted this change and it was merged.

Change subject: category.py breaks articles with includeonly and noinclude
......................................................................


category.py breaks articles with includeonly and noinclude

Note:
New lines are inserted around new cat by category.py.
Such behaviour has not been changed in spite of the bug description.

Bug: T57315
Change-Id: I06f59da44c8216a9b2a2619bf7c1d210c06b23f5
---
M pywikibot/textlib.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  John Vandenberg: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py
index 530dc70..407041b 100644
--- a/pywikibot/textlib.py
+++ b/pywikibot/textlib.py
@@ -733,7 +733,7 @@
     catNamespace = '|'.join(site.category_namespaces())
     categoryR = re.compile(r'\[\[\s*(%s)\s*:.*?\]\]\s*' % catNamespace, re.I)
     text = replaceExcept(text, categoryR, '',
-                         ['nowiki', 'comment', 'math', 'pre', 'source'],
+                         ['nowiki', 'comment', 'math', 'pre', 'source', 
'includeonly'],
                          marker=marker,
                          site=site)
     if marker:

-- 
To view, visit https://gerrit.wikimedia.org/r/89026
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I06f59da44c8216a9b2a2619bf7c1d210c06b23f5
Gerrit-PatchSet: 3
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Mpaa <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to