tuhi: prettify the exported json
having the whole file in a single line is fine for programs, much less for humans
This commit is contained in:
parent
a1ed978db9
commit
6d74615085
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue