Amire80 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/56718


Change subject: Normalize line endings
......................................................................

Normalize line endings

Follow up to If29c536a26181aacc7c957a7f7112593fc574121 .

Fixing it when creating the announcement, too.

Change-Id: Iab78a466eb773e8d70ae07ab69c6b9039d0994e8
---
M melange/BundleCreater.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/translatewiki 
refs/changes/18/56718/1

diff --git a/melange/BundleCreater.php b/melange/BundleCreater.php
index dc75039..5c412ed 100644
--- a/melange/BundleCreater.php
+++ b/melange/BundleCreater.php
@@ -306,7 +306,7 @@
 
                foreach ( $this->conf['extensions'] as $ext => $checkout ) {
                        $notefile = $this->dir . "/notes/$version-$ext";
-                       $contents = file_get_contents( $notefile );
+                       $contents = str_replace( array( "\r\n", "\r" ), "\n", 
file_get_contents( $notefile ) );
                        preg_match( '/^#---$(.*)^#---$/msU', $contents, 
$matches );
                        if ( !isset( $matches[1] ) ) {
                                echo "Could not parse notes for extension 
$ext\n";

-- 
To view, visit https://gerrit.wikimedia.org/r/56718
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iab78a466eb773e8d70ae07ab69c6b9039d0994e8
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Amire80 <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to