tuhi: prettify the exported json

having the whole file in a single line is fine for programs, much
less for humans
pull/122/head
Benjamin Tissoires 2019-04-23 11:34:07 +02:00
parent a1ed978db9
commit 6d74615085
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ class Drawing(GObject.Object):
'timestamp': self.timestamp,
'strokes': [s.to_dict() for s in self.strokes]
}
return json.dumps(json_data)
return json.dumps(json_data, indent=2)
@classmethod
def from_json(cls, path):