From 53bc659170c885eb39231ad9a30567dc11a2fd40 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Fri, 29 Oct 2010 18:28:44 +0000 Subject: [PATCH] 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. --- includes/diff/DifferenceEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1