Steps to replicate the issue:
- Create a gallery which includes a line break
<gallery> Example.jpg|Image<br />line break </gallery>
- Open the image in MediaViewer
What happens?:
- No whitespace between "Image" and "line break" when using Parsoid: https://de.wikipedia.org/w/index.php?title=Benutzer:Johannnes89/Artikelentwurf&useparsoid=1#/media/Datei:Example.jpg
What should have happened instead?:
- Show a whitespace between "Image" and "line break", just like in the legacy parser: https://de.wikipedia.org/w/index.php?title=Benutzer:Johannnes89/Artikelentwurf&useparsoid=0#/media/Datei:Example.jpg
Other information:

