From: Platonides Date: Tue, 26 Jan 2010 16:16:00 +0000 (+0000) Subject: Parser documentation: X-Git-Tag: 1.31.0-rc.0~38102 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=e1c37b835b3dd4aa0817354f2c9fdf2cb6779b46;p=lhc%2Fweb%2Fwiklou.git Parser documentation: "We are not counting sequences of five apostrophes." comment is wrong. It was added on r4578, when they stopped being counted, but since r4747 (fixing bug 40) they are counted again. Clarify what $first variables are. --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index ccfc2256e3..c9376e927c 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -1142,7 +1142,6 @@ class Parser $arr[$i] = "''''''"; } # Count the number of occurrences of bold and italics mark-ups. - # We are not counting sequences of five apostrophes. if ( strlen( $arr[$i] ) == 2 ) { $numitalics++; } elseif ( strlen( $arr[$i] ) == 3 ) { $numbold++; } elseif ( strlen( $arr[$i] ) == 5 ) { $numitalics++; $numbold++; } @@ -1160,7 +1159,8 @@ class Parser $i = 0; # These are indexes to the /next/ array entry than the - # one holding the text matching the condition. + # one holding the text matching the condition which gives name + # to the variable. $firstsingleletterword = -1; $firstmultiletterword = -1; $firstspace = -1;