Steps to reproduce
- Open https://meta.wikimedia.org/wiki/Community_Wishlist_Survey_2022/Results.
- Look at the Tickets column.
Actual result
- The column is very wide, because there are no spaces after the commas in the tasks list.
Expected result
- There are spaces after the commas.
Investigation results
- This page uses Template:Int with the parameter comma-separator, which in turn uses Module:Int.
- Module:Int loads the named MediaWiki message. Its content is , , i.e. an ASCII comma followed by an ASCII space.
- Then it passes the loaded message to frame:preprocess.
- rELUA includes/Engines/LuaCommon/LuaEngine.php normalizes the line endings. Before 91232499 (@thiemowmde), it was done with str_replace( [ "\r\n", "\r" ], "\n", $input ), now it calls TextContent::normalizeLineEndings.
- TextContent::normalizeLineEndings does almost the same as the previous code, with the only difference being that it does an rtrim() on its input before feeding it to str_replace(). And this is where trailing space gets lost.
I suggest to revert this part of 91232499. There may be on-wiki workarounds, but since it was just a refactoring commit, with no indications for fixing any bugs, the easiest is to just revert the regression.