Merge pull request #81 from R15-Software-Dev/fix/admin-file-errors
Insert trailing commas after lists of strings
This commit was merged in pull request #81.
This commit is contained in:
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user