asses li and ul to blocklevel regex, those are coming from included templates.
authorGabriel Wicke <gwicke@users.mediawiki.org>
Sat, 10 Apr 2004 16:06:30 +0000 (16:06 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Sat, 10 Apr 2004 16:06:30 +0000 (16:06 +0000)
includes/Parser.php

index 3f64232..3bf6485 100644 (file)
@@ -1091,10 +1091,10 @@ class Parser
                        if ( 0 == $npl ) { # No prefix (not in list)--go to paragraph mode
                                $uniq_prefix = UNIQ_PREFIX;
                                // XXX: use a stack for nestable elements like span, table and div
-                               $openmatch = preg_match("/(<table|<blockquote|<h1|<h2|<h3|<h4|<h5|<h6|<div|<pre|<tr|<td|<p)/i", $t );
+                               $openmatch = preg_match("/(<table|<blockquote|<h1|<h2|<h3|<h4|<h5|<h6|<div|<pre|<tr|<td|<p|<ul|<li)/i", $t );
                                $closematch = preg_match( 
                                        "/(<\\/table|<\\/blockquote|<\\/h1|<\\/h2|<\\/h3|<\\/h4|<\\/h5|<\\/h6|".
-                                       "<\\/div|<hr|<\\/td|<\\/pre|<\\/p|".$uniq_prefix."-pre)/i", $t );
+                                       "<\\/div|<hr|<\\/td|<\\/pre|<\\/p|".$uniq_prefix."-pre|<\\/li|<\\/ul)/i", $t );
                                if ( $openmatch or $closematch ) {
                                        if ( $pstack ) { $pstack = false; }
                                        $text .= $this->closeParagraph();