r61519 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r61518
|
r61519
|
r61520
>
Date:
16:16, 26 January 2010
Author:
platonides
Status:
reverted
Tags:
Comment:
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.
Modified paths:
/trunk/phase3/includes/parser/Parser.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/parser/Parser.php
—
—
@@ -1142,7 +1142,6 @@
1143
1143
$arr[$i] = "''''''";
1144
1144
}
1145
1145
# Count the number of occurrences of bold and italics mark-ups.
1146
- # We are not counting sequences of five apostrophes.
1147
1146
if ( strlen( $arr[$i] ) == 2 ) { $numitalics++; }
1148
1147
elseif ( strlen( $arr[$i] ) == 3 ) { $numbold++; }
1149
1148
elseif ( strlen( $arr[$i] ) == 5 ) { $numitalics++; $numbold++; }
—
—
@@ -1160,7 +1159,8 @@
1161
1160
$i = 0;
1162
1161
1163
1162
# These are indexes to the /next/ array entry than the
1164
- # one holding the text matching the condition.
1163
+ # one holding the text matching the condition which gives name
1164
+ # to the variable.
1165
1165
$firstsingleletterword = -1;
1166
1166
$firstmultiletterword = -1;
1167
1167
$firstspace = -1;
Follow-up revisions
Revision
Commit summary
Author
Date
r61551
Revert
r61528
,
r61527
,
r61526
,
r61525
,
r61519
,
r61515
,
r61053
,
r61052
(Parser...
tstarling
02:41, 27 January 2010
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r4578
Bugfix: produce valid XHTML even if user entered invalid '' / ''' mark-up.
timwi
12:37, 7 August 2004
r4747
Fixes to the bold/italics rendering problems [
Bug 40
]...
timwi
08:32, 14 August 2004
Status & tagging log
02:56, 27 January 2010
Tim Starling
(
talk
|
contribs
)
changed the
status
of r61519
[
removed:
new
added:
reverted]