From 8ee3ea37df66ea122c52327c34ea4af25d5929ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sat, 9 Apr 2005 08:36:29 +0000 Subject: [PATCH] * (bug 1343) Redundant whitespace around tables (


) --- includes/Parser.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 0cd3908862..7fe8bce954 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -540,8 +540,7 @@ class Parser $fc = substr ( $x , 0 , 1 ) ; if ( preg_match( '/^(:*)\{\|(.*)$/', $x, $matches ) ) { $indent_level = strlen( $matches[1] ); - $t[$k] = "\n" . - str_repeat( '

', $indent_level ) . + $t[$k] = str_repeat( '
', $indent_level ) . '' ; array_push ( $td , false ) ; array_push ( $ltd , '' ) ; @@ -550,7 +549,7 @@ class Parser } else if ( count ( $td ) == 0 ) { } # Don't do any of the following else if ( '|}' == substr ( $x , 0 , 2 ) ) { - $z = "" . substr ( $x , 2) . "\n"; + $z = "" . substr ( $x , 2); $l = array_pop ( $ltd ) ; if ( array_pop ( $tr ) ) $z = '' . $z ; if ( array_pop ( $td ) ) $z = '' . $z ; -- 2.20.1