Description

On the page RecentChanges pages which have been changed recently are listed.

Problem 1: Pages which contain a CamelCase part are displayed with a space at the word boundary (e.g. Camel Case).

While this may improve the readability on this special page, it is asymmetric as this is not done anywhere else (as far as I know). Further on, users that copy the displayed page name from RecentChanges, will not find the real page or may non-working WikiLinks.

Problem 2: Extra spaces are inserted into the edit comments, too. But following another pattern.

I have no idea what purpose this behavior may have solved. Whenever I saw it it just messes things up.

Steps to reproduce

Problem 1:

  1. Create a CamelCase page

  2. Look up RecentChanges

Problem 2:

  1. Edit a page with a edit comment like "WikiSandBox/SubPage137 edited." or "'meinezeichnung.tdraw'"

  2. The edit comment is displayed as "WikiSandBox/SubPage1 37 edited." or "'meinezeichnung.tdra w'"

Example

   1 [...]
   2 <table>
   3 <tr class="rcdaybreak"><td colspan="6"><strong>2010-08-10</strong>&nbsp; <a href="/testwiki/action/bookmark/Aktuelle%C3%84nderungen?action=bookmark&amp;time=1281482418531746" rel="nofollow">Lesezeichen setzen</a></td></tr>
   4 <tr>
   5 <td class="rcicon1"><a href="/testwiki/action/diff/MeineStartSeite/Seite755?action=diff" rel="nofollow"><img alt="[DIFF]" height="16" src="/moin_static193/modernized/img/moin-diff.png" title="[DIFF]" width="16" /></a></td>
   6 <td class="rcpagelink"><a href="/testwiki/MeineStartSeite/Seite755">Meine Start Seite/Seite755</a></td>
   7 <td class="rctime">vor 0m</td>
   8 <td class="rcicon2"><a href="/testwiki/action/info/MeineStartSeite/Seite755?action=info" rel="nofollow"><img alt="[INFO]" height="16" src="/moin_static193/modernized/img/moin-info.png" title="[INFO]" width="16" /></a></td>
   9 <td class="rceditor"><span title="root"><a href="/testwiki/root" title="root">root</a></span></td>
  10 <td class="rccomment"></td>
  11 </tr>
  12 
  13 <tr>
  14 <td class="rcicon1"><a href="/testwiki/action/diff/MeineStartSeite?action=diff" rel="nofollow"><img alt="[DIFF]" height="16" src="/moin_static193/modernized/img/moin-diff.png" title="[DIFF]" width="16" /></a></td>
  15 <td class="rcpagelink"><a href="/testwiki/MeineStartSeite">MeineStartSeite</a></td>
  16 <td class="rctime">vor 0m</td>
  17 <td class="rcicon2"><a href="/testwiki/action/info/MeineStartSeite?action=info" rel="nofollow"><img alt="[INFO]" height="16" src="/moin_static193/modernized/img/moin-info.png" title="[INFO]" width="16" /></a></td>
  18 <td class="rceditor"><span title="root"><a href="/testwiki/root" title="root">root</a></span>&nbsp;[1-6]</td>
  19 <td class="rccomment"><tt>#02</tt>&nbsp;'meinezeichnung.tdra w'<br><tt>#03</tt>&nbsp;Dateianhang 'meinezeichnung.tdra w' wurde gelöscht.<br><tt>#04</tt>&nbsp;mydrawing.tdraw deleted.<br><tt>#05</tt>&nbsp;WikiSandBox/SubPage1 37 edited.</td>
  20 
  21 </tr>
  22 <tr>
  23 <td class="rcicon1"><a href="/testwiki/action/diff/MeineStartSeite/Seite767?action=diff" rel="nofollow"><img alt="[GELÖSCHT]" height="16" src="/moin_static193/modernized/img/moin-deleted.png" title="[GELÖSCHT]" width="16" /></a></td>
  24 <td class="rcpagelink"><a class="nonexistent" href="/testwiki/MeineStartSeite/Seite767">Meine Start Seite/Seite767</a></td>
  25 <td class="rctime">13:14</td>
  26 <td class="rcicon2"><a href="/testwiki/action/info/MeineStartSeite/Seite767?action=info" rel="nofollow"><img alt="[INFO]" height="16" src="/moin_static193/modernized/img/moin-info.png" title="[INFO]" width="16" /></a></td>
  27 <td class="rceditor"><span title="">anonym</span>&nbsp;[1]<br><span title="root"><a href="/testwiki/root" title="root">root</a></span>&nbsp;[2]</td>
  28 <td class="rccomment"><tt>#02</tt>&nbsp;Umbenannt von 'MeineStartSeite/Sei te766'. </td>
  29 </tr>

Component selection

Details

This wiki.

Workaround

Discussion

It is intended that comments get a space inserted for a linebreak. And if CamelCase are shown with a blank between the words this depends on your user settings. Check off in General: "Add spaces to displayed wiki names". Copying the URL works for me.

you just need to look in any browser how bad long words destroy the complete layout


This should be a feature request rather than a bug.

As stated above, the purpose of inserting blanks into long wiki names and comment-words is to prevent one exceptionally long page name or comment-word from forcing the browser to display the page with a horizontal scroll bar, thereby creating an undesirable page layout.


The patch below is a Mercurial diff against the 1.9.3 tip as of 2010-08-18. Zero-width space characters are inserted into long page names. Soft hyphens are inserted in long words within comments.

recentchanges.diff updated 2010-08-22 - eliminated DOS line endings, moved test_recentchanges to /macro/_tests.

If you do not have Mercurial installed and want to apply or test the fix against your 1.9.3 installation:

Browsers tested:

Failures noted:

Plan


CategoryFeatureRequest

MoinMoin: FeatureRequests/RecentChangesExtraSpacesInCamelWords (last edited 2010-08-22 21:04:25 by RogerHaase)