Page MenuHomePhabricator

Some dot-separators in recent changes and watchlist are missing surrounding whitespace
Closed, ResolvedPublicBUG REPORT

Description

Seen quite some time ago. But still present.

Steps to Reproduce:

  1. Watch some frequently edited page.
  2. Have "Group results by page" in Watchlist (or RC) enabled.
  3. Uncollapse some block of changes.

Actual Results:

obrazek.png (320×1 px, 37 KB)

As the screenshot shows, some of those separators are missing surrounding whitespace (red underline), whereas others do have it (blue underline).

Example from my watchlist on wikidata.org.

Developer notes

Sample HTML shows missing spaces

`
<td class="mw-changeslist-line-inner"> <span class="mw-title"><a href="/w/index.php?title=Talk:Arabic_language" class="mw-changeslist-title" title="Talk:Arabic language">Talk:Arabic language</a></span>&lrm;&lrm; <span class="mw-changeslist-links"><span>8 changes</span> <span><a href="/w/index.php?title=Talk:Arabic_language&amp;curid=1069&amp;action=history" class="mw-changeslist-history" title="Talk:Arabic language">history</a></span></span><span class="mw-changeslist-separator"></span><strong dir="ltr" class="mw-plusminus-pos mw-diff-bytes" title="738 bytes after change">+738</strong>&lrm; <span class="mw-changeslist-separator"></span><span class="changedby">[<a href="/w/index.php?title=User:Toby&amp;action=edit&amp;redlink=1" class="new mw-userlink" title="User:Toby (page does not exist)"><bdi>Toby</bdi></a>&lrm; (8×)]</span></td>

`

Inserting a space character before mw-changeslist-separator opening tag and after it's closing tag should take care of this

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Where exactly to enable "Group changes by page"?

Excuse my typo, fixed in description:

obrazek.png (477×549 px, 35 KB)

kostajh subscribed.

Tentatively moving to Q2.

Change 526501 had a related patch set uploaded (by Ed; owner: Ed):
[mediawiki/core@master] Fix recent changes and watchlist separator whitespace

https://gerrit.wikimedia.org/r/526501

Change 526501 merged by jenkins-bot:
[mediawiki/core@master] Fix recent changes and watchlist separator whitespace

https://gerrit.wikimedia.org/r/526501

Yes, but I notice another excessive whitespace:

obrazek.png (175×1 px, 19 KB)

I see this too. Guess this is not completely solved just yet!

<span class="mw-changeslist-links"><span>2 changes</span> <span>

^ space needs dropping there

<span class="mw-usertoollinks mw-changeslist-links"><span><a href="/wiki/User_talk:Selenium_user" class="mw-usertoollinks-talk" title="User talk:Selenium user">talk</a></span> <span><a href="/wiki/Special:Contributions/Selenium_user" class="mw-usertoollinks-contribs" title="Special:Contributions/Selenium user">contribs</a></span> <span><a href="/wiki/Special:Block/Selenium_user" class="mw-usertoollinks-block" title="Special:Block/Selenium user">block</a></span></span>

^ space needs dropping after contriibs</a>

matmarex subscribed.

The remaining issues were caused by a weird override for https://en.wikipedia.beta.wmflabs.org/wiki/MediaWiki:Pipe-separator: &nbsp;|&#32;. I just deleted it and they're resolved.

I'm sure I saw this on some other Wikimedia wikis. We should probably look around for such overrides and have them deleted...

There was a similar problem at least on production English Wikipedia, but it was resolved there by deleting the override a couple months ago (April 2019: https://en.wikipedia.org/wiki/MediaWiki:Pipe-separator). I remember that there was some task discussing this, but I can't find it now.