From: Ben Schmidt Date: Wed, 29 Feb 2012 16:42:50 +0000 (+1100) Subject: Don't stop wrapping when skipping text (in a failed conditional). X-Git-Tag: RELEASE_1_2_18a1~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4939c172bcb491c893a45d8da565dd6972af5e7;p=thirdparty%2Fmlmmj.git Don't stop wrapping when skipping text (in a failed conditional). --- diff --git a/src/prepstdreply.c b/src/prepstdreply.c index dbe736f0..b499f8dd 100644 --- a/src/prepstdreply.c +++ b/src/prepstdreply.c @@ -1209,7 +1209,8 @@ char *get_processed_text_line(text *txt, int headers, *pos = '\0'; pos = line; while (*pos == ' ' || *pos == '\t') pos++; - if (*pos == '\r' || *pos == '\n' || *pos == '\0') { + if ((*pos == '\r' || *pos == '\n' || *pos == '\0') && + txt->skip == NULL) { /* Empty/white line; stop wrapping, finish the last line and save the empty/white line for later. */