From: Ævar Arnfjörð Bjarmason Date: Sat, 9 Apr 2005 08:36:29 +0000 (+0000) Subject: * (bug 1343) Redundant whitespace around tables (


) X-Git-Tag: 1.5.0alpha1~327 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=8ee3ea37df66ea122c52327c34ea4af25d5929ca;p=lhc%2Fweb%2Fwiklou.git * (bug 1343) Redundant whitespace around tables (


) --- 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 ;