Issue started around early February 2020 (don't know exact date). Does not seem to occur with any templates. Occurs on at least the English and French Wikipedias.
Steps to reproduce:
- Edit a page in VisualEditor on a wiki that supports adding citations (in <ref> tags).
- Find two or more citations next to each other, or create them.
- Add a space or a carriage return between each citation.
- Switch to the source editor.
- Switch back.
- Now remove one of the spaces.
Actual result:
The citation after the removed space jumps to a new line, and you cannot put it back on its original line by backspacing or deleting the "new lines".
This is only in the editor; saving the page will keep them on the same line.
This is easily fixed by specifically clicking in a paragraph other than the one containing the citations. The citations will then jump back to their original position.
Expected result:
The space or carriage return is simply removed.