Insert trailing commas after lists of strings #81
@@ -554,7 +554,8 @@ pub async fn get_student_pdf(student_id: String) -> Result<(String, Vec<u8>), Se
|
|||||||
.replace("[", "(")
|
.replace("[", "(")
|
||||||
.replace("]", ")")
|
.replace("]", ")")
|
||||||
// Ensures trailing commas for lists of dictionaries
|
// Ensures trailing commas for lists of dictionaries
|
||||||
.replace("))", "),)");
|
.replace("))", "),)")
|
||||||
|
.replace("\")", "\",)");
|
||||||
|
|
||||||
debug_log!("New string: {}", typst_string);
|
debug_log!("New string: {}", typst_string);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user