From: Domas Mituzas Date: Fri, 4 Mar 2005 10:24:07 +0000 (+0000) Subject: Fix for Bug 1620, Wiki-table nnd tag strips whole line, hiding text after table X-Git-Tag: 1.5.0alpha1~677 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=1894517b75d81fbb51dbbc17027b06d56cbd85b8;p=lhc%2Fweb%2Fwiklou.git Fix for Bug 1620, Wiki-table nnd tag strips whole line, hiding text after table Bug reported and patch supplied by: Andrius Ramanauskas (Knutux) - alarm at takas.lt --- diff --git a/includes/Parser.php b/includes/Parser.php index 0a19fb0176..bf04c12e3c 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -552,7 +552,7 @@ class Parser } else if ( count ( $td ) == 0 ) { } # Don't do any of the following else if ( '|}' == substr ( $x , 0 , 2 ) ) { - $z = "\n" ; + $z = "" . substr ( $x , 2) . "\n"; $l = array_pop ( $ltd ) ; if ( array_pop ( $tr ) ) $z = '' . $z ; if ( array_pop ( $td ) ) $z = '' . $z ;