MaxSem has uploaded a new change for review.
https://gerrit.wikimedia.org/r/281532
Change subject: Trim parse results
......................................................................
Trim parse results
Bug: T131626
Change-Id: I4dd55dde934da2ff6b3c7c440e36dd451eebd4f1
---
M includes/SimpleStyleParser.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Kartographer
refs/changes/32/281532/1
diff --git a/includes/SimpleStyleParser.php b/includes/SimpleStyleParser.php
index 0f07f00..1157748 100644
--- a/includes/SimpleStyleParser.php
+++ b/includes/SimpleStyleParser.php
@@ -166,9 +166,9 @@
if ( !is_string( $properties->$prop ) ) {
unset( $properties->$prop ); // Dunno
what the hell it is, ditch
} else {
- $properties->$prop =
Parser::stripOuterParagraph(
+ $properties->$prop = trim(
Parser::stripOuterParagraph(
$this->parser->recursiveTagParseFully( $properties->$prop, $this->frame )
- );
+ ) );
}
}
}
--
To view, visit https://gerrit.wikimedia.org/r/281532
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4dd55dde934da2ff6b3c7c440e36dd451eebd4f1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Kartographer
Gerrit-Branch: master
Gerrit-Owner: MaxSem <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits