From 287598bb79ac7aed85af66e3ac769f3da883891b Mon Sep 17 00:00:00 2001 From: Lucas Vas Date: Mon, 27 Apr 2026 14:57:31 -0400 Subject: [PATCH] fix: insert trailing commas after lists of strings This was already present for lists of dictionaries, but lists that contained a single string also failed to parse properly. --- src/pages/api/students.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/api/students.rs b/src/pages/api/students.rs index 754ccfb..d376391 100644 --- a/src/pages/api/students.rs +++ b/src/pages/api/students.rs @@ -554,7 +554,8 @@ pub async fn get_student_pdf(student_id: String) -> Result<(String, Vec), Se .replace("[", "(") .replace("]", ")") // Ensures trailing commas for lists of dictionaries - .replace("))", "),)"); + .replace("))", "),)") + .replace("\")", "\",)"); debug_log!("New string: {}", typst_string);