Commits

Westley Martínez  committed 9dce501

Make JSON output pretty.

  • Participants
  • Parent commits 120a4f1

Comments (0)

Files changed (1)

File mapeditor.pyw

                 return
         else:
             with open(self.save_file, mode='w') as f:
-                json.dump(self.map.get_structure(), f)
+                json.dump(self.map.get_structure(), f, sort_keys=True,
+                          indent=4, separators=(',', ': '))
 
     def save_as(self):
         self.save_file = tk.filedialog.asksaveasfilename(parent=self.master,