From fd49db2029c5930f91476623a8afb359789a9515 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 1 Feb 2001 00:29:35 +0000 Subject: If we are folding, drop the space at the end of the line. 2001-02-01 Not Zed * camel-mime-utils.c (header_fold): If we are folding, drop the space at the end of the line. svn path=/trunk/; revision=7928 --- camel/ChangeLog | 5 +++++ camel/camel-mime-utils.c | 3 +++ 2 files changed, 8 insertions(+) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 9e0455b079..e9e6b4dbd6 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2001-02-01 Not Zed + + * camel-mime-utils.c (header_fold): If we are folding, drop the + space at the end of the line. + 2001-01-30 Not Zed * camel-remote-store.c (timeout_cb): Remvoe the stream locking diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index b7a14992d8..0b77dbe9c8 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -3153,6 +3153,9 @@ header_fold(const char *in, int headerlen) d(printf("next word '%.*s'\n", len, inptr)); if (outlen + len > CAMEL_FOLD_SIZE) { d(printf("outlen = %d wordlen = %d\n", outlen, len)); + /* strip trailing space */ + if (out->len > 0 && out->str[out->len-1] == ' ') + g_string_truncate(out, out->len-1); g_string_append(out, "\n\t"); outlen = 1; /* check for very long words, just cut them up */ -- cgit v1.2.3