Add a newline to the end of language-data.json

This helps Git and Vim be less confused about diffs.
It somehow sometimes happens that a newline is added to
the end of language-data.json, but sometimes it is not added,
and then Git diff shows it as removed or added. This change
ensures that it's always added.
This commit is contained in:
Amir Aharoni
2021-02-25 13:54:01 +02:00
committed by Kartik Mistry
parent 06865e7f19
commit a73375d0df

View File

@@ -107,7 +107,7 @@ foreach ( $parsedLangdb['territories'] as $territoryCode => $languages ) {
}
print "Writing JSON langdb...\n";
$jsonVerbose = json_encode( $parsedLangdb, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE );
$jsonVerbose = json_encode( $parsedLangdb, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE ) . "\n";
// For making diff review easier.
file_put_contents( DATA_DIRECTORY . '/language-data.json', $jsonVerbose );