woops
This commit is contained in:
parent
50d2bab142
commit
9dd95d9181
@ -712,11 +712,11 @@ static char *www_wordwrap(char *content, int cutoff) {
|
||||
}
|
||||
at = 0;
|
||||
for (i=0;i<len;i++) {
|
||||
if (content[i] == '\r' && content[i+1] != '\r') {
|
||||
if (content[i] == '\r' && content[i+1] != '\r' && content[i+1] != '\0') {
|
||||
content[at++] = ' ';
|
||||
content[at++] = content[i+1];
|
||||
i++;
|
||||
} else if (content[i] == '\r' && content[i+1] == '\r') {
|
||||
} else if (content[i] == '\r' && content[i+1] == '\r' && content[i+1] != '\0') {
|
||||
content[at++] = '\r';
|
||||
i++;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user