From cf881ba76d67cc172229d2db54a7f492c15f0f68 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Fri, 29 Oct 2010 18:52:59 +0000 Subject: [PATCH] Switch the hyphen in diff output to actually minus signs. --- RELEASE-NOTES | 3 +++ includes/diff/DifferenceEngine.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index a8f008ac66..26075cf37c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -374,6 +374,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN 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 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN 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 === diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index c534ba0ca3..512f3fbc24 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -1172,7 +1172,7 @@ class TableDiffFormatter extends DiffFormatter { # HTML-escape parameter before calling this function deletedLine( $line ) { - return $this->wrapLine( '-', 'diff-deletedline', $line ); + return $this->wrapLine( '−', 'diff-deletedline', $line ); } # HTML-escape parameter before calling this -- 2.20.1