more tweaking word wrap

This commit is contained in:
Andrew Pamment 2018-02-27 22:42:15 +10:00
parent 77303fc475
commit 6d5ef94796

View File

@ -733,6 +733,9 @@ static char *www_wordwrap(char *content, int cutoff) {
content[at++] = '\r'; content[at++] = '\r';
i++; i++;
} else { } else {
if (content[i] == ' ' && at > 0 && content[at-1] == '\r') {
continue;
}
content[at++] = content[i]; content[at++] = content[i];
} }
} }