more tweaking word wrap
This commit is contained in:
parent
77303fc475
commit
6d5ef94796
@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user