Add a nbsp to each empty "diff-marker".
authorDerk-Jan Hartman <hartman@users.mediawiki.org>
Fri, 29 Oct 2010 18:28:44 +0000 (18:28 +0000)
committerDerk-Jan Hartman <hartman@users.mediawiki.org>
Fri, 29 Oct 2010 18:28:44 +0000 (18:28 +0000)
Fixes Bug 25697
Prevent collapsed table row if both pre and post lines in the diff are totally empty.

includes/diff/DifferenceEngine.php

index c01837a..c534ba0 100644 (file)
@@ -1177,7 +1177,7 @@ class TableDiffFormatter extends DiffFormatter {
 
        # HTML-escape parameter before calling this
        function contextLine( $line ) {
-               return $this->wrapLine( ' ', 'diff-context', $line );
+               return $this->wrapLine( '&#160;', 'diff-context', $line );
        }
 
        private function wrapLine( $marker, $class, $line ) {