Revert last change

This commit is contained in:
Andrew Pamment 2018-02-05 15:30:45 +10:00
parent 588b6a6436
commit af4af06294

View File

@ -716,17 +716,13 @@ static char *www_wordwrap(char *content, int cutoff) {
last_space = &ret[at]; last_space = &ret[at];
} }
at++; at++;
ret[at] = '\0';
} else { } else {
ret[at] = ' '; ret[at++] = content[i];
last_space = &ret[at++];
ret[at] = '\0';
} }
ret[at] = '\0';
if (content[i] == '\r' && content[i+1] == '\r') { if (content[i] == '\r') {
i+=2;
ret[at++] = '\r';
ret[at] = '\0';
line_count = 0; line_count = 0;
last_space = NULL; last_space = NULL;
} else if (line_count == cutoff) { } else if (line_count == cutoff) {