diff --git a/src/main.rs b/src/main.rs index 300f3cb..3bff82e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -407,16 +407,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 {