more fiddling with wordwrap
This commit is contained in:
parent
962e4cc67f
commit
2a0ef93fb2
@ -724,7 +724,9 @@ static char *www_wordwrap(char *content, int cutoff) {
|
|||||||
if (content[i+1] == ' ') {
|
if (content[i+1] == ' ') {
|
||||||
content[at++] = '\r';
|
content[at++] = '\r';
|
||||||
} else {
|
} else {
|
||||||
content[at++] = ' ';
|
if (content[at-1] != '\r') {
|
||||||
|
content[at++] = ' ';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (content[i] == '\r' && content[i+1] == '\r') {
|
} else if (content[i] == '\r' && content[i+1] == '\r') {
|
||||||
content[at++] = '\r';
|
content[at++] = '\r';
|
||||||
|
Reference in New Issue
Block a user