diff --git a/src/main.rs b/src/main.rs index 5d6447e..0b57d00 100644 --- a/src/main.rs +++ b/src/main.rs @@ -406,16 +406,12 @@ fn main() -> Result<(), Box> { } }; - // if let Some(last_char) = transcription.chars().last() { - // if last_char != '.' - // && last_char != '?' - // && last_char != '!' - // && last_char != ',' - // { - // transcription.push('.'); - // } - // } - transcription.push(' '); + if let Some(last_char) = transcription.chars().last() { + if ['.', '?', '!', ','].contains(&last_char) { + println!("adding space to end of transcription"); + transcription.push(' '); + } + } enigo.key_sequence(&transcription); } else {