$lastPrefixLength = strlen( $lastPrefix );
$preOpenMatch = preg_match("/<pre/i", $oLine );
$preCloseMatch = preg_match("/<\\/pre/i", $oLine );
- $nowikiOpenMatch = preg_match("/( *)(.*?)<span class=\"nowiki\"/", $oLine, $nowikiOpenMatches );
+ $nowikiOpenMatch = preg_match("/(.*|)<span class=\"nowiki\"/s", $oLine, $nowikiOpenMatches );
$nowikiCloseMatch = preg_match("/<\\/span >/", $oLine );
if (!$this->mInPre) {
$this->mInPre = !empty($preOpenMatch);
}
if (
!$this->mInPre && (!$this->mInNowiki ||
- $nowikiOpenMatch && !empty($nowikiOpenMatches[2]) && strlen($nowikiOpenMatches[2]) > 0 )
+ ($nowikiOpenMatch && strlen($nowikiOpenMatches[1]) > 0) )
)
{
# Multiple prefixes may abut each other for nested lists.
}
}
}
- if($nowikiCloseMatch) $this->mInNowiki = false;
}
+ if($nowikiCloseMatch) $this->mInNowiki = false;
if ($paragraphStack === false) {
$output .= $t."\n";
}