From 922609f1042d521616b9f8314950b7432db50b47 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Thu, 6 Jan 2005 00:13:49 +0000 Subject: [PATCH] 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 --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1