From 6fc7f1cfbf3e426d69337e3e3f929083671710f7 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 15 May 2022 12:47:50 +0100 Subject: [PATCH] subst: Always substitute dollars in mformat 2 text Signed-off-by: Ian Jackson --- src/shapelib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shapelib.rs b/src/shapelib.rs index ef46c23b..bf03ff14 100644 --- a/src/shapelib.rs +++ b/src/shapelib.rs @@ -1288,6 +1288,8 @@ fn process_files_entry( move |input| Ok( if let Some((keyword, val)) = kv { subst(input.mky(mformat, dollars), keyword, val)?.into() + } else if dollars.enabled(mformat) { + input.mky(mformat, dollars).into() } else { input } -- 2.30.2