From 5af89c49c645e5fd9a437d082b12ac11c0240751 Mon Sep 17 00:00:00 2001 From: "Mr. E23" Date: Tue, 6 Jan 2004 19:44:04 +0000 Subject: [PATCH] New fix for bug 869949 'Lists inside tables' from TomK32 --- includes/OutputPage.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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 ) -- 2.20.1