From: Waldir Pimenta Date: Sun, 3 Jun 2012 14:15:28 +0000 (+0100) Subject: Wrap auto-numbering for section heading in a classed span (bug 33450) X-Git-Tag: 1.31.0-rc.0~23296^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=55f4eb263b9d480224b044ba1e55ba08da39828a;p=lhc%2Fweb%2Fwiklou.git Wrap auto-numbering for section heading in a classed span (bug 33450) Change-Id: Ibea90c096b1b757c277819fc403eef45209fc94c --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 35f187f4d8..fa734b4063 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -4170,7 +4170,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