going to get it right eventually...
This commit is contained in:
parent
6d5ef94796
commit
735fe035d7
@ -724,7 +724,7 @@ static char *www_wordwrap(char *content, int cutoff) {
|
|||||||
if (content[i+1] == ' ') {
|
if (content[i+1] == ' ') {
|
||||||
content[at++] = '\r';
|
content[at++] = '\r';
|
||||||
} else {
|
} else {
|
||||||
if (at > 0 && content[at-1] != '\r') {
|
if (at > 0 && content[at-1] != '\r' && content[at-1] != ' ') {
|
||||||
content[at++] = ' ';
|
content[at++] = ' ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -733,9 +733,6 @@ 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