https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114313
Revision: 114313
Author: maxsem
Date: 2012-03-20 21:37:52 +0000 (Tue, 20 Mar 2012)
Log Message:
-----------
Fix cross-platform line ending madness
Modified Paths:
--------------
trunk/extensions/MobileFrontend/api/ApiQueryExtracts.php
Modified: trunk/extensions/MobileFrontend/api/ApiQueryExtracts.php
===================================================================
--- trunk/extensions/MobileFrontend/api/ApiQueryExtracts.php 2012-03-20
21:34:50 UTC (rev 114312)
+++ trunk/extensions/MobileFrontend/api/ApiQueryExtracts.php 2012-03-20
21:37:52 UTC (rev 114313)
@@ -424,7 +424,7 @@
public function onHtmlReady( $html ) {
if ( $this->plainText ) {
$html = preg_replace( '/\s*(<h([1-6])\b)/i',
- ApiQueryExtracts::SECTION_MARKER_START . '$2' .
ApiQueryExtracts::SECTION_MARKER_END . '$1' ,
+ "\n\n" . ApiQueryExtracts::SECTION_MARKER_START
. '$2' . ApiQueryExtracts::SECTION_MARKER_END . '$1' ,
$html
);
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs