From 5e4e6c8fcd3456dc561cd6b9646435428d21b316 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Sat, 23 Dec 2023 19:05:38 -0800 Subject: [PATCH] Save json savefiles to disk in pretty print form (#80512) Pretty printed json files are easier to store file history for. --- code/datums/json_savefile.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/json_savefile.dm b/code/datums/json_savefile.dm index 08f8cf2d616..dd2a6af0b98 100644 --- a/code/datums/json_savefile.dm +++ b/code/datums/json_savefile.dm @@ -57,7 +57,7 @@ GENERAL_PROTECT_DATUM(/datum/json_savefile) /datum/json_savefile/proc/save() if(path) - rustg_file_write(json_encode(tree), path) + rustg_file_write(json_encode(tree, JSON_PRETTY_PRINT), path) /datum/json_savefile/serialize_list(list/options, list/semvers) SHOULD_CALL_PARENT(FALSE)