Avoid unnecessary linebreaks in difflines. Fixes bug 25725
authorDerk-Jan Hartman <hartman@users.mediawiki.org>
Mon, 1 Nov 2010 00:14:21 +0000 (00:14 +0000)
committerDerk-Jan Hartman <hartman@users.mediawiki.org>
Mon, 1 Nov 2010 00:14:21 +0000 (00:14 +0000)
RELEASE-NOTES
includes/diff/DifferenceEngine.php

index 82ce949..53102a1 100644 (file)
@@ -380,6 +380,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 25642) A exception is now thrown instead of a fatal error when using
   $wgSMTP without PEAR mail package
 * (bug 19633) When possible, Upscale small SVGs when creating thumbnails.
+* (bug 25725) Unwanted linebreaks in diffs.
 
 === API changes in 1.17 ===
 * (bug 22738) Allow filtering by action type on query=logevent.
index f46705c..c148d23 100644 (file)
@@ -1045,7 +1045,7 @@ class _HWLDF_WordAccumulator {
 
        function getLines() {
                $this->_flushLine('~done');
-               return $this->_lines;
+               return preg_replace( '/\n/m', '', $this->_lines);
        }
 }