From 1ec2bc02bd430d13034177cacba1727aeaefb537 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Fri, 25 May 2018 22:42:35 +1000 Subject: [PATCH] more messing with word wrap --- src/www_msgs.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/www_msgs.c b/src/www_msgs.c index da8dc75..3761b5e 100644 --- a/src/www_msgs.c +++ b/src/www_msgs.c @@ -791,7 +791,11 @@ static char *www_wordwrap(char *content, int cutoff) { if (at > 0 && content[at-1] != '\r' && content[at-1] != ' ' && cutoff - line_count < z) { content[at++] = ' '; line_count++; - } + } else { + content[at++] = '\r'; + line_count = 0; + quote_line = 0; + } } else if (quote_line == 1) { content[at++] = '\r'; line_count = 0;