From 0eba8fdf4e2625eec886b912f4239eb02c138caa Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Sun, 26 Oct 2025 18:56:21 +0100 Subject: [PATCH] chore: change quoting to match newer OSC versions --- src/commands.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/commands.rs b/src/commands.rs index 74a0409..d87acf1 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -162,7 +162,7 @@ fn handle_list( return Err(Box::new(FileError::Reading( filename, "Nur OSB- und OSC-Dateien werden unterstützt".to_string(), - ))) + ))); } } Ok(()) @@ -190,13 +190,13 @@ fn handle_tree( filename, "Nur OSC-Dateien werden unterstützt. OSB-Dateien erzeugen eine zu lange Ausgabe." .to_string(), - ))) + ))); } InputFile::Yaml { filename, .. } | InputFile::Other { filename, .. } => { return Err(Box::new(FileError::Reading( filename, "Nur OSC-Dateien werden unterstützt".to_string(), - ))) + ))); } } @@ -250,9 +250,8 @@ fn handle_modify( .to_string() .add( buf - // Replace ' and " as used in original file - .replace("'", "'") - .replace(""", "\"") + // Use " as used in original file + .replace("\"", """) .as_str(), );