2006-10-31 [wwp] 2.5.6cvs13
authorTristan Chabredier <wwp@claws-mail.org>
Tue, 31 Oct 2006 10:12:43 +0000 (10:12 +0000)
committerTristan Chabredier <wwp@claws-mail.org>
Tue, 31 Oct 2006 10:12:43 +0000 (10:12 +0000)
* src/compose.c
fix and optimize trimming of leading linefeeds in body loop.

ChangeLog
PATCHSETS
configure.ac
src/compose.c

index 8c1400b..88464ed 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-31 [wwp]       2.5.6cvs13
+
+       * src/compose.c
+               fix and optimize trimming of leading linefeeds in body loop.
+
 2006-10-31 [colin]     2.5.6cvs12
 
        * src/etpan/imap-thread.c
index 58f1dbd..8c7da4d 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.382.2.318 -r 1.382.2.319 src/compose.c;  ) > 2.5.6cvs10.patchset
 ( cvs diff -u -r 1.204.2.106 -r 1.204.2.107 src/prefs_common.c;  cvs diff -u -r 1.103.2.64 -r 1.103.2.65 src/prefs_common.h;  cvs diff -u -r 1.382.2.319 -r 1.382.2.320 src/compose.c;  ) > 2.5.6cvs11.patchset
 ( cvs diff -u -r 1.1.4.53 -r 1.1.4.54 src/etpan/imap-thread.c;  cvs diff -u -r 1.179.2.135 -r 1.179.2.136 src/imap.c;  ) > 2.5.6cvs12.patchset
+( cvs diff -u -r 1.382.2.320 -r 1.382.2.321 src/compose.c;  ) > 2.5.6cvs13.patchset
index c794230..319b553 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=5
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=12
+EXTRA_VERSION=13
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 80a26cd..d6c4dd8 100644 (file)
@@ -2429,9 +2429,9 @@ static gchar *compose_quote_fmt(Compose *compose, MsgInfo *msginfo,
        if (fmt && *fmt != '\0') {
                gchar *tmp = NULL;
 
-               while (trimmed_body && strlen(trimmed_body) > 1
-                       && trimmed_body[0]=='\n')
-                       *trimmed_body++;
+               if (trimmed_body)
+                       while (*trimmed_body == '\n')
+                               trimmed_body++;
 
                /* decode \-escape sequences in the internal representation of the quote format */
                tmp = malloc(strlen(fmt)+1);