From 6721d0a97df1bc7efab3b001324156b3bca62235 Mon Sep 17 00:00:00 2001 From: Tait Hoyem <44244401+TTWNO@users.noreply.github.com> Date: Tue, 11 Jun 2019 16:56:46 +0000 Subject: [PATCH] Fix some formatting issues :) --- morse.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/morse.c b/morse.c index bbbba06..6cbfdc0 100644 --- a/morse.c +++ b/morse.c @@ -75,7 +75,10 @@ void print_single_morse(char charToMorse, bool isSlow, bool addLetter){ } // if not convertable } else { - printf("%c", charToMorse); + if (charToMorse == '-' || charToMorse == '.'){ + } else { + printf("%c", charToMorse); + } } } @@ -143,6 +146,7 @@ int main(int argc, char *argv[]){ wordToken = multi_tok(NULL, " "); printf(" "); } + printf("\n"); fflush(stdin); } } else {