Page MenuHomePhabricator

cosmetic_changes should not add line between __NOTOC__ and header
Open, Needs TriagePublicBUG REPORT

Description

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.):

Event Timeline

JAnD added a subscriber: mykhal.

On Wiktionary is common that the first item on page is header. Sometimes there is some template or __ magicword__ above it, but new line above first header is not good.