Section (or subsection) headings on wikis are usually under the format `=== Heading ===` with only one space between the text and the equal signs.
Step to reproduce:
- Find an article that has a section whose heading contains the following sequence "space, colon, space".
- Edit any section of it using the visual editor and save.
All section headings containing the given pattern, will have "gained" an extra space before the ending equal signs. If you do it again, another extra space appears, and so on. It seems that sometimes the same VisualEditor removes the spaces, probably when editing the top of the page.
__Examples__ seen on various articles edited by different users on the French or English Wikipedias : [[https://fr.wikipedia.org/w/index.php?title=Romain_Bardet&diff=prev&oldid=173773427|this edit on frwiki]] and the next two ones, [[https://fr.wikipedia.org/w/index.php?title=Derby_de_Casablanca&diff=173857287&oldid=173834106 | this other edit]] and the following four, [[https://en.wikipedia.org/w/index.php?title=Indian_Institute_of_Management_Bangalore&diff=973922195&oldid=973169090 | this one on enwiki]], etc.
__Reproduced__ in a sandbox on enwiki : [[https://en.wikipedia.org/w/index.php?title=Draft:Sandbox&diff=974059884&oldid=974059568 | here]] and [[https://en.wikipedia.org/w/index.php?title=Draft%3ASandbox&type=revision&diff=974066404&oldid=974060475 | several tests between these versions]]. Spaces only removed [[https://en.wikipedia.org/w/index.php?title=Draft:Sandbox&diff=974069154&oldid=974066404 | in this edit]].
This bug does not affect page rendering but can unnecessarily disturb the reader of the difference between two versions. I am not sure but haven't noticed such a behavior before August 2020.