From: Derk-Jan Hartman Date: Fri, 29 Oct 2010 18:28:44 +0000 (+0000) Subject: Add a nbsp to each empty "diff-marker". X-Git-Tag: 1.31.0-rc.0~34220 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=53bc659170c885eb39231ad9a30567dc11a2fd40;p=lhc%2Fweb%2Fwiklou.git Add a nbsp to each empty "diff-marker". Fixes Bug 25697 Prevent collapsed table row if both pre and post lines in the diff are totally empty. --- diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index c01837a17c..c534ba0ca3 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -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( ' ', 'diff-context', $line ); } private function wrapLine( $marker, $class, $line ) {