resourceloader: Add newline after 'mw.loader.implement()' in debug mode

The next mw.loader.implement() starts on its own line.

Change-Id: Iae0a5eab58f1065c354018ed23c6a9834973b19d
This commit is contained in:
Fomafix 2019-04-07 11:12:04 +02:00 committed by Timo Tijhof
parent a4c86d3017
commit 46b361d743

View file

@ -1119,6 +1119,10 @@ MESSAGE;
if ( !$context->getDebug() ) {
$strContent = self::filter( $filter, $strContent );
} else {
// In debug mode, separate each response by a new line.
// For example, between 'mw.loader.implement();' statements.
$strContent = $this->ensureNewline( $strContent );
}
if ( $context->getOnly() === 'scripts' ) {