From: Magnus Manske Date: Tue, 16 Sep 2003 13:26:09 +0000 (+0000) Subject: table fix X-Git-Tag: 1.1.0~265 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=1abe77f8f01e19f4fca833d60e676032f95276ab;p=lhc%2Fweb%2Fwiklou.git table fix --- 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.