mirror of
https://github.com/bobbimanners/emailler.git
synced 2025-02-23 15:28:59 +00:00
Reworking of email_pager() / word_wrap_line_mime() is working now.
This commit is contained in:
parent
4231d627b9
commit
a8dc30962a
@ -722,9 +722,9 @@ uint8_t word_wrap_line_mime(FILE *fp, char **s) {
|
||||
} else {
|
||||
//printf("NORET");
|
||||
// No EOL
|
||||
i = 80 - col; // Doesn't fit, need to break
|
||||
i = 80 - col; // Space left on line
|
||||
if (i > l)
|
||||
i = l;
|
||||
return 0; // Need more input to proceed
|
||||
while ((ss[--i] != ' ') && (i > 0));
|
||||
if (i == 0) { // No space character found
|
||||
//printf("NOSPC\n");
|
||||
@ -995,7 +995,7 @@ restart:
|
||||
//while (word_wrap_line_mime(stdout, &readp));
|
||||
do {
|
||||
c = word_wrap_line_mime(stdout, &readp);
|
||||
cgetc(); //DEBUG
|
||||
// cgetc(); //DEBUG
|
||||
} while (c == 1);
|
||||
if (readp)
|
||||
writep += chars;
|
||||
|
Loading…
x
Reference in New Issue
Block a user