Nikerabbit has uploaded a new change for review.

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

Change subject: Add newline to the end of exported json files
......................................................................

Add newline to the end of exported json files

1) Some text editors add missing newline at the end of the file
automatically.
2) It's generally a nice thing to do, like not messing up the
display when cat'ing a file.

Change-Id: I3a85eae1d4e27094eac3321fa83183fce29916ba
---
M ffs/JsonFFS.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/54/122654/1

diff --git a/ffs/JsonFFS.php b/ffs/JsonFFS.php
index cb97f10..2010f1b 100644
--- a/ffs/JsonFFS.php
+++ b/ffs/JsonFFS.php
@@ -107,9 +107,9 @@
 
                // BC for MediaWiki <= 1.21
                if ( defined( 'FormatJson::ALL_OK' ) ) {
-                       return FormatJSON::encode( $messages, /*pretty*/true, 
FormatJson::ALL_OK );
+                       return FormatJSON::encode( $messages, /*pretty*/true, 
FormatJson::ALL_OK ) . "\n";
                } else {
-                       return FormatJSON::encode( $messages, /*pretty*/true );
+                       return FormatJSON::encode( $messages, /*pretty*/true ) 
. "\n";
                }
        }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3a85eae1d4e27094eac3321fa83183fce29916ba
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>

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

Reply via email to