Insert trailing commas after lists of strings #81

Merged
BobdaFett merged 1 commits from fix/admin-file-errors into main 2026-04-27 19:02:16 +00:00
+2 -1
View File
@@ -554,7 +554,8 @@ pub async fn get_student_pdf(student_id: String) -> Result<(String, Vec<u8>), Se
.replace("[", "(")
.replace("]", ")")
// Ensures trailing commas for lists of dictionaries
.replace("))", "),)");
.replace("))", "),)")
.replace("\")", "\",)");
debug_log!("New string: {}", typst_string);