Remove leading emtpy lines from quoted text before quoting it
authorColin Leroy <colin@colino.net>
Thu, 13 Mar 2003 19:23:37 +0000 (19:23 +0000)
committerColin Leroy <colin@colino.net>
Thu, 13 Mar 2003 19:23:37 +0000 (19:23 +0000)
ChangeLog.claws
configure.ac
src/compose.c

index eb6bff3..bfd4ee2 100644 (file)
@@ -1,3 +1,9 @@
+2003-03-13 [colin]     0.8.11claws9
+
+       * src/compose.c
+               Remove leading emtpy lines from quoted text
+               before quoting it
+
 2003-03-13 [melvin]    0.8.11claws8
 
        * src/prefs_actions.c
index 8f77440..7bcf58d 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=11
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws8
+EXTRA_VERSION=claws9
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 6e766b4..cf02772 100644 (file)
@@ -1668,7 +1668,8 @@ static gchar *compose_quote_fmt(Compose *compose, MsgInfo *msginfo,
        gchar *buf;
        gchar *p, *lastp;
        gint len;
-
+       gchar *trimmed_body = body;
+       
        if (!msginfo)
                msginfo = &dummyinfo;
 
@@ -1685,7 +1686,11 @@ static gchar *compose_quote_fmt(Compose *compose, MsgInfo *msginfo,
        }
 
        if (fmt && *fmt != '\0') {
-               quote_fmt_init(msginfo, quote_str, body);
+               while (trimmed_body && strlen(trimmed_body) > 1
+                       && trimmed_body[0]=='\n')
+                       *trimmed_body++;
+
+               quote_fmt_init(msginfo, quote_str, trimmed_body);
                quote_fmt_scan_string(fmt);
                quote_fmt_parse();