From 57fd734889f9ab95eceb96bdd607e51e9e79ce33 Mon Sep 17 00:00:00 2001 From: Anthony Date: Sat, 8 Jun 2024 13:08:33 +1000 Subject: [PATCH] Resolve issue with carriage return breaking whitespace character literals --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index b42be44..d8e96e6 100644 --- a/src/main.c +++ b/src/main.c @@ -1038,7 +1038,7 @@ static const char *cleanup(char *buf, bool bDisable) ++str; if (*str == TAB) *str = ' '; - if (*str == '\n' || *str == 0) + if (*str == '\n' || *str == '\r' || *str == 0) { str[0] = ' '; str[1] = 0;