What is the problem?
In the inline diff view, inserts/deletes appear on separate lines (if they are more than a single word?).
This leads to output that can look different to the original article and might lead users to think extra newlines have been added.
Original article | Inline diff | Two column diff |
In the above example, https://en.wikipedia.org/w/index.php?title=Calais_Conference_%28December_1915%29&diff=prev&oldid=1118137858&diffmode=source&diff-type=inline shows Kitchener on a separate line in the inline diff. This is not the case in the article.
I note that if I remove display: inline-block; from the css it at least partially solves this issue (see below screenshot). It also partially solves the bug in T327642. I am not sure if this is a good solution, though.
Steps to reproduce problem
Above examples come from https://en.wikipedia.org/w/index.php?title=Calais_Conference_%28December_1915%29&diff=prev&oldid=1118137858&diffmode=source&diff-type=inline.
Many inline diffs show a similar problem.
Environment
Browser: Firefox 91.
Wiki(s): https://en.wikipedia.org MediaWiki 1.40.0-wmf.19 (3ee932e) 02:18, 17 January 2023. (I don't know which version of wikidiff2 is being used.)