From: Jens Frank Date: Thu, 6 Jan 2005 00:13:49 +0000 (+0000) Subject: BUG#1269 - Fix section editing for articles with verbatim sections X-Git-Tag: 1.5.0alpha1~990 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=922609f1042d521616b9f8314950b7432db50b47;p=lhc%2Fweb%2Fwiklou.git BUG#1269 - Fix section editing for articles with verbatim sections There's a space added before the closing bracket during processing of HTML tags. Changed the regexp to also match --- diff --git a/includes/Parser.php b/includes/Parser.php index 1d2bc625ba..f9571eca32 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2411,7 +2411,7 @@ class Parser # Get all headlines for numbering them and adding funky stuff like [edit] # links - this is for later, but we need the number of headlines right now - $numMatches = preg_match_all( '/)(.*?)<\/H[1-6]>/i', $text, $matches ); + $numMatches = preg_match_all( '/)(.*?)<\/H[1-6] *>/i', $text, $matches ); # if there are fewer than 4 headlines in the article, do not show TOC if( $numMatches < 4 ) {