allow pre's in lists, report by rizzo and mhnoyes
authorGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 14 Jul 2004 18:38:28 +0000 (18:38 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 14 Jul 2004 18:38:28 +0000 (18:38 +0000)
includes/Parser.php

index 4e0913b..0247134 100644 (file)
@@ -1264,7 +1264,7 @@ class Parser
                        if (!$this->mInPre) {
                                $this->mInPre = !empty($preOpenMatch);
                        }
-                       if ( !$this->mInPre ) {
+                       if ( $preOpenMatch || !$this->mInPre ) {
                                # Multiple prefixes may abut each other for nested lists.
                                $prefixLength = strspn( $oLine, '*#:;' );
                                $pref = substr( $oLine, 0, $prefixLength );