Steps to replicate the issue (include links if applicable):
- have page with code
__NOTOC__ == header== some text
- run cosmetic_changes.py for this page
What happens?:
- new line is added between NOTOC and == header ==
https://cs.wiktionary.org/w/index.php?diff=1248692&oldid=1246091&title=%E2%98%BE
What should have happened instead?:
in this case not to add new line
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):