From 735fe035d7937375f50cfe1d2c4f347a9c56b03f Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Tue, 27 Feb 2018 22:44:31 +1000 Subject: [PATCH] going to get it right eventually... --- src/www_msgs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/www_msgs.c b/src/www_msgs.c index bf69506..56e70a3 100644 --- a/src/www_msgs.c +++ b/src/www_msgs.c @@ -724,7 +724,7 @@ static char *www_wordwrap(char *content, int cutoff) { if (content[i+1] == ' ') { content[at++] = '\r'; } else { - if (at > 0 && content[at-1] != '\r') { + if (at > 0 && content[at-1] != '\r' && content[at-1] != ' ') { content[at++] = ' '; } } @@ -733,9 +733,6 @@ static char *www_wordwrap(char *content, int cutoff) { content[at++] = '\r'; i++; } else { - if (content[i] == ' ' && at > 0 && content[at-1] == '\r') { - continue; - } content[at++] = content[i]; } }