In ruwiki, the check "Проверить пунктуацию" for fixing punctuation problems with - and em dash:
"--": "—", "\\s-\\s": " — ", "\\s-(\\d+)": " −$1", "\\s-([а-яё]+)": " —$1", "([^\\d\\s]+)(—|\\s—|—\\s)([^\\d\\s]+)": "$1 — $3"
behaves weirdly when there are templates around an em dash. For example, see a section of article Краснодарский край:
The edit check suggests something which looks like changing em dash to em dash (which already isn't very useful), but when I click it it just removes the templates... I have no idea why this happens and what I should fix so that it wouldn't.
A similar thing but for links instead of templates happens here.
A similar thing happens here with numbers in templates.
Similar thing here with a template and the space isn't actually added at all.
orig: T407664#11969479
