diff --git a/Cargo.toml b/Cargo.toml index 7696445..002d885 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,3 +4,4 @@ members = [ "swordfish-common", "swordfish" ] +default-members = ["swordfish"] diff --git a/swordfish/src/katana.rs b/swordfish/src/katana.rs index 2a655a4..2ed9b5b 100644 --- a/swordfish/src/katana.rs +++ b/swordfish/src/katana.rs @@ -130,6 +130,10 @@ fn fix_tesseract_string(text: &mut String) { while replace_string(text, " ", " ") { trace!("Removing multiple spaces"); } + // Remove the last character if it is a dash + if text.ends_with("-") { + text.pop(); + } // Workaround if the first character is a space trace!("Text: {}", text); while text.starts_with(" ") {