From 1abe77f8f01e19f4fca833d60e676032f95276ab Mon Sep 17 00:00:00 2001 From: Magnus Manske Date: Tue, 16 Sep 2003 13:26:09 +0000 Subject: [PATCH] table fix --- includes/OutputPage.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index dd7252024a..849c5f9f73 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -669,6 +669,18 @@ function doTableStuff ( $t ) } +# Closing open td, tr && table +while ( count ( $td ) > 0 ) +{ +if ( array_pop ( $td ) ) $t[] = "" ; +if ( array_pop ( $tr ) ) $t[] = "" ; +$t[] = "" ; +} + + $t = implode ( "\n" , $t ) ; + return $t ; +} + # Well, OK, it's actually about 14 passes. But since all the # hard lifting is done inside PHP's regex code, it probably # wouldn't speed things up much to add a real parser. -- 2.20.1