jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: I3a85eae1d4e27094eac3321fa83183fce29916ba
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to