[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n-doc
Subject: [Patch] Add newline at the end of translated json files
From: Elvis Angelaccio <elvis.angelaccio () kde ! org>
Date: 2016-11-09 14:19:10
Message-ID: CALN1cns01uaN6TVuaxFu2WSkaWNtL=+knU1FOE17nUjXgnBm6Q () mail ! gmail ! com
[Download RAW message or body]
Hi,
json files translated by scripty are currently created without an
ending newline. Krazy complains about this (e.g. see first 9 issues in
[1]), so I'm attaching a patch that should fix this (not tested
though).
Please have a look and consider applying it if it works.
Cheers
Elvis
[1]: http://ebn.kde.org/krazy/reports/kde-4.x/kdeutils/ark/index.html
["newline.patch" (text/x-patch)]
Index: filljsonfrompo.py
===================================================================
--- filljsonfrompo.py (revision 1474102)
+++ filljsonfrompo.py (working copy)
@@ -132,6 +132,7 @@
with io.open(jsonfilename, 'w', encoding='utf-8') as data_file:
output = json.dumps(jsondata, sort_keys=True, indent=4, ensure_ascii=False)
data_file.write(output)
+ data_file.write('\n')
if __name__ == "__main__":
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic