Hello everybody! I noticed a strange behavior and wonder if this is intentional or no. It drives me crazy!
For example, I have a small page with a few headlines like so:
= Headline 1 = Text for headline 1 == Headline 2 == Text for headline 2 == Headline 3 == Text for headline 3
Notice the double new line in front of each headline. This is meant to be this way, because then the headline will be much more visible. This may not be as important with headline levels 1 and 2 like in the example, but when you come down to headline level 3 and 4 they get harder to distinguish from plain bold text, so the added whitespace before each headline helps to improve readability.
OK, so this is how my mediawiki pages are structured. Now I go and edit the text for headline 2 with the neat symbol next to headline 2, which is very handy because it will only show the text for headline 2 in editor. However doing this, after saving the edited text, the whole page text source will be as follows:
= Headline 1 = Text for headline 1 == Headline 2 == Edited text for headline 2 == Headline 3 == Text for headline 3
Notice how the double new line in front of headline 3 was replaced with just a single new line. In effect, the whitespace before headline 3 has vanished. What is more, there seems to be no way to stop this from happening, because the headline 3 was not even part of the text in the editor, so the new lines could not have been adjusted by user neither. This seems to be mediawiki deciding on its own.
The only known workaround for me is to think about never editing only text for headline 2. However that way, I need to scroll in editor, find headline 2 again, before I can start editing. This can be very cumbersome, when more text and headlines are present than in the example above. Also all editors need to think about it for every edit, otherwise this effect happens again, destroying the whitespace for all users, so it is not really viable.
Please let me know if this was intentional behavior following a conscious decision by mediawiki developers or just a minor glitch which nobody seems to have cared for just yet. Thank you and best regards