Commit e3e9aae2 authored by Michal Čihař's avatar Michal Čihař

Ensure we do not add whitespace after , in JSON

This is just a code copy from current translate-toolkit.

Fixes #887
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 2aaa3aca
......@@ -38,5 +38,6 @@ class JsonFile(JsonFileTT):
for unit in self.units:
data[unit.getid().lstrip('.')] = unit.source
return json.dumps(
data, sort_keys=True, indent=4, ensure_ascii=False
data, sort_keys=True, separators=(',', ': '),
indent=4, ensure_ascii=False
).encode('utf-8')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment