http://www.mediawiki.org/wiki/Special:Code/MediaWiki/71215
Revision: 71215 Author: simetrical Date: 2010-08-17 21:55:21 +0000 (Tue, 17 Aug 2010) Log Message: ----------- Avoid spurious paragraph with new heading id's Bug 24835. The use of <a> made the parser put <p> around the tag, so use <div> instead. (Something was also adding a name="" attribute, but I'm not sure what. That should be killed.) Modified Paths: -------------- trunk/phase3/includes/Linker.php Modified: trunk/phase3/includes/Linker.php =================================================================== --- trunk/phase3/includes/Linker.php 2010-08-17 21:32:25 UTC (rev 71214) +++ trunk/phase3/includes/Linker.php 2010-08-17 21:55:21 UTC (rev 71215) @@ -1439,7 +1439,7 @@ . " <span class=\"mw-headline\" id=\"$anchor\">$text</span>" . "</h$level>"; if ( $legacyAnchor !== false ) { - $ret = "<a id=\"$legacyAnchor\"></a>$ret"; + $ret = "<div id=\"$legacyAnchor\"></div>$ret"; } return $ret; } _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs