From 3e05447e381a33ed4a01be922afadd953736c246 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Tue, 1 Apr 2014 08:03:05 +0000 Subject: [PATCH] Add newline at the end of converted 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 to avoid messing up display for example when cat'ing a file Change-Id: Icf636721c4edcf4ae706c9a346fe36233928cae8 --- maintenance/generateJsonI18n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/generateJsonI18n.php b/maintenance/generateJsonI18n.php index 27a9ff16d9..8dc89ed518 100644 --- a/maintenance/generateJsonI18n.php +++ b/maintenance/generateJsonI18n.php @@ -83,7 +83,7 @@ class GenerateJsonI18n extends Maintenance { $jsonfile = "$jsondir/$langcode.json"; $success = file_put_contents( $jsonfile, - FormatJson::encode( $langmsgs, true, FormatJson::ALL_OK ) + FormatJson::encode( $langmsgs, true, FormatJson::ALL_OK ) . "\n" ); if ( $success === false ) { $this->error( "FAILED to write $jsonfile", 1 ); -- 2.20.1