From: Brion Vibber Date: Mon, 14 Apr 2008 20:39:00 +0000 (+0000) Subject: * (bug 13728) Don't trim initial whitespace during section edits X-Git-Tag: 1.31.0-rc.0~48330 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=cee68e66816854d354cb914780cf863a40f3e182;p=lhc%2Fweb%2Fwiklou.git * (bug 13728) Don't trim initial whitespace during section edits --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 84c8fcceef..ef09bfff2e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -180,6 +180,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 13708) Don't set "Search results" title when loading Special:Search without query * (bug 13736) Don't show MediaWiki:Anontalkpagetext on non-existant IP addresses +* (bug 13728) Don't trim initial whitespace during section edits + === API changes in 1.13 === diff --git a/includes/Parser.php b/includes/Parser.php index 3e2c80aad3..6f8ae8520c 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -4662,7 +4662,7 @@ class Parser if ( is_string( $outText ) ) { // Re-insert stripped tags - $outText = trim( $this->mStripState->unstripBoth( $outText ) ); + $outText = rtrim( $this->mStripState->unstripBoth( $outText ) ); } return $outText;