http://www.mediawiki.org/wiki/Special:Code/MediaWiki/75662

Revision: 75662
Author:   hartman
Date:     2010-10-29 18:52:59 +0000 (Fri, 29 Oct 2010)
Log Message:
-----------
Switch the hyphen in diff output to actually minus signs.

Modified Paths:
--------------
    trunk/phase3/RELEASE-NOTES
    trunk/phase3/includes/diff/DifferenceEngine.php

Modified: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES  2010-10-29 18:45:32 UTC (rev 75661)
+++ trunk/phase3/RELEASE-NOTES  2010-10-29 18:52:59 UTC (rev 75662)
@@ -374,6 +374,7 @@
   requested.
 * (bug 22308) Search now finds text in default main page immediately after 
setup
 * (bug 25697) Make sure empty lines render in diff view.
+* Use an actual minus sign in diff views, instead of a hyphen.
 
 === API changes in 1.17 ===
 * (bug 22738) Allow filtering by action type on query=logevent.
@@ -462,6 +463,8 @@
   <head> and by providing an API module action=rsd. Added hook 
   ApiRsdServiceApis for extensions to add their own service to the services 
   list.
+* The HTML of diff output markers has changed. Hyphens are now minus signs, 
+  empty markers are now filled with non-breaking-space characters.
 
 === Languages updated in 1.17 ===
 

Modified: trunk/phase3/includes/diff/DifferenceEngine.php
===================================================================
--- trunk/phase3/includes/diff/DifferenceEngine.php     2010-10-29 18:45:32 UTC 
(rev 75661)
+++ trunk/phase3/includes/diff/DifferenceEngine.php     2010-10-29 18:52:59 UTC 
(rev 75662)
@@ -1172,7 +1172,7 @@
 
        # HTML-escape parameter before calling this
        function deletedLine( $line ) {
-               return $this->wrapLine( '-', 'diff-deletedline', $line );
+               return $this->wrapLine( '&minus;', 'diff-deletedline', $line );
        }
 
        # HTML-escape parameter before calling this


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to