From: Mr. E23 Date: Tue, 6 Jan 2004 19:44:04 +0000 (+0000) Subject: New fix for bug 869949 'Lists inside tables' from TomK32 X-Git-Tag: 1.3.0beta1~1188 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=5af89c49c645e5fd9a437d082b12ac11c0240751;p=lhc%2Fweb%2Fwiklou.git New fix for bug 869949 'Lists inside tables' from TomK32 --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 6e3fce9e26..47d36101cd 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -177,7 +177,7 @@ class OutputPage { else { $q = preg_split( "/<\\/\\s*pre\\s*>/i", $p[1], 2 ); ++$presecs; - $prelist[$presecs] = "
". wfEscapeHTMLTagsOnly($q[0]). "
"; + $prelist[$presecs] = "
". wfEscapeHTMLTagsOnly($q[0]). "
\n"; $stripped3 .= $unique3 . $presecs . "s"; $stripped2 = $q[1]; } @@ -1029,7 +1029,7 @@ $t[] = "" ; $result = "mLastSection . ">"; } $this->mLastSection = ""; - return $result; + return $result."\n"; } # getCommon() returns the length of the longest common substring # of both arguments, starting at the beginning of both. @@ -1083,17 +1083,18 @@ $t[] = "" ; /* private */function closeList( $char ) { - if ( "*" == $char ) { return ""; } - else if ( "#" == $char ) { return ""; } + if ( "*" == $char ) { $text = ""; } + else if ( "#" == $char ) { $text = ""; } else if ( ":" == $char ) { if ( $this->mDTopen ) { $this->mDTopen = false; - return ""; + $text = ""; } else { - return ""; + $text = ""; } } - return ""; + else { return ""; } + return $text."\n"; } /* private */ function doBlockLevels( $text, $linestart )