1
Fork 0
mirror of https://github.com/redstrate/Auracite.git synced 2025-05-01 08:27:46 +00:00

Pretty-print character.json

This commit is contained in:
Joshua Goins 2025-04-28 15:33:00 -04:00
parent 70002bbe7a
commit bc0f8eff6e

View file

@ -348,7 +348,7 @@ pub async fn archive_character(
} }
zip.start_file("character.json", options)?; zip.start_file("character.json", options)?;
zip.write_all(serde_json::to_string(&char_data).unwrap().as_ref())?; zip.write_all(serde_json::to_string_pretty(&char_data).unwrap().as_ref())?;
zip.start_file("character.html", options)?; zip.start_file("character.html", options)?;
zip.write_all(create_character_html(&char_data).as_ref())?; zip.write_all(create_character_html(&char_data).as_ref())?;