mirror of
https://github.com/wassname/sloth.git
synced 2026-08-12 12:30:50 +08:00
Merge pull request #79 from neingeist/fix-trailing-whitespace
Avoid trailing whitespace in the JSON output
This commit is contained in:
@@ -314,7 +314,7 @@ class JsonContainer(AnnotationContainer):
|
||||
"""
|
||||
# TODO make all image filenames relative to the label file
|
||||
f = open(fname, "w")
|
||||
json.dump(annotations, f, indent=4, sort_keys=True)
|
||||
json.dump(annotations, f, indent=4, separators=(',', ': '), sort_keys=True)
|
||||
|
||||
|
||||
class MsgpackContainer(AnnotationContainer):
|
||||
|
||||
Reference in New Issue
Block a user