XZise created this task. XZise added a subscriber: XZise. XZise added projects: pywikibot-core, Pywikibot-Cosmetic-changes. Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION At the end of the text the cosmetic changes script is adding unnecessary newlines:
``` python pwb.py cosmetic_changes.py -ns:0 -family:wiktionary -lang:cs -start:! -summary:"cc" -simulate
ATTENTION: You can run this script as a stand-alone for testing purposes. However, the changes that are made are only minor, and other users might get angry if you fill the version histories and watchlists with such irrelevant changes. Some wikis prohibit stand-alone running. Do you really want to continue? ([y]es, [N]o) y Retrieving 50 pages from wiktionary:cs.
! <<<
@@ -39 +39 @@ - [[th:!]] + [[th:!]]
Comment: cc Do you want to accept these changes? ([y]es, [N]o, [a]ll, [q]uit) ```
It seems that `textlib.replaceLanguageLinks` is causing this so maybe it's not a cosmetic changes related problem but more general.
TASK DETAIL https://phabricator.wikimedia.org/T93915
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: pywikipedia-bugs, Aklapper, XZise, jayvdb