From cee68e66816854d354cb914780cf863a40f3e182 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 14 Apr 2008 20:39:00 +0000 Subject: [PATCH] * (bug 13728) Don't trim initial whitespace during section edits --- RELEASE-NOTES | 2 ++ includes/Parser.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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; -- 2.20.1