Fix for Bug 1620, Wiki-table nnd tag strips whole line, hiding text after table
authorDomas Mituzas <midom@users.mediawiki.org>
Fri, 4 Mar 2005 10:24:07 +0000 (10:24 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Fri, 4 Mar 2005 10:24:07 +0000 (10:24 +0000)
Bug reported and patch supplied by: Andrius Ramanauskas (Knutux) - alarm at takas.lt

includes/Parser.php

index 0a19fb0..bf04c12 100644 (file)
@@ -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 = "</table>\n" ;
+                               $z = "</table>" . substr ( $x , 2) . "\n";
                                $l = array_pop ( $ltd ) ;
                                if ( array_pop ( $tr ) ) $z = '</tr>' . $z ;
                                if ( array_pop ( $td ) ) $z = '</'.$l.'>' . $z ;