In some respects, this is the opposite of T98132: VisualEditor doesn't handle paragraph breaks in image captions editor correctly.
Steps to reproduce:
- Add an image.
- Type a caption.
- Hit return a couple of times.
- Insert the image.
- See the funny extra white space at the bottom of the thumbnailed image.
- Save the page.
- See the funny extra lines in the wikitext:
[[File:A decoration on the Grave of Edward Flatau.JPG|thumb|Hygieian malja ]]