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.