From 3136db2465b599fe66b5643d7e4bf4a85a5495ce Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 14 May 2022 15:11:06 +0100 Subject: [PATCH] shapelib: magic: Actually substitute _colour in the template This doesn't actually work because _colour appears multiple times and subst insists on it being there only once. Signed-off-by: Ian Jackson --- src/shapelib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shapelib.rs b/src/shapelib.rs index 84c25b8d..4de0d671 100644 --- a/src/shapelib.rs +++ b/src/shapelib.rs @@ -1247,6 +1247,7 @@ fn process_files_entry( .replace_all(&magic.template, |caps: ®ex::Captures| { format!("{}{}", caps.get(1).unwrap().as_str(), &image_table) }); + let spec = c_colour(&spec)?; trace!("magic item {}\n\n{}\n", &item_name, &spec); -- 2.30.2