From 6ffc8a57da2605363e9942f92afd7e66e7ad867c Mon Sep 17 00:00:00 2001 From: Brett Mayson Date: Fri, 18 Oct 2024 07:16:20 +0000 Subject: [PATCH] more trim maybe --- bin/src/modules/binarize/mod.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/bin/src/modules/binarize/mod.rs b/bin/src/modules/binarize/mod.rs index 4568c60e..dbc113e5 100644 --- a/bin/src/modules/binarize/mod.rs +++ b/bin/src/modules/binarize/mod.rs @@ -277,11 +277,16 @@ impl Module for Binarize { &target .source .trim_start_matches(tmp_source.to_str().expect("path is valid utf-8")) + .trim_start_matches('/') .replace('/', "\\"), - &target - .output - .trim_start_matches(tmp_source.to_str().expect("path is valid utf-8")) - .replace('/', "\\"), + &format!( + "..\\{}", + &target + .output + .trim_start_matches(tmp_source.to_str().expect("path is valid utf-8")) + .trim_start_matches('/') + .replace('/', "\\") + ), &target.entry.replace('/', "\\"), ]) .current_dir(&tmp_source);