dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
dee9dbb
)
Merge "Wrap auto-numbering for section heading in a classed span (bug 33450)"
author
GWicke
<gwicke@wikimedia.org>
Sun, 17 Jun 2012 16:39:27 +0000
(16:39 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Sun, 17 Jun 2012 16:39:28 +0000
(16:39 +0000)
includes/parser/Parser.php
patch
|
blob
|
history
diff --git
a/includes/parser/Parser.php
b/includes/parser/Parser.php
index
091e495
..
4beb8fd
100644
(file)
--- a/
includes/parser/Parser.php
+++ b/
includes/parser/Parser.php
@@
-4171,7
+4171,7
@@
class Parser {
# Don't number the heading if it is the only one (looks silly)
if ( count( $matches[3] ) > 1 && $this->mOptions->getNumberHeadings() ) {
# the two are different if the line contains a link
- $headline =
$numbering
. ' ' . $headline;
+ $headline =
Html::element( 'span', array( 'class' => 'mw-headline-number' ), $numbering )
. ' ' . $headline;
}
# Create the anchor for linking from the TOC to the section