From: Alberto Garcia Date: Fri, 15 Feb 2008 12:33:31 +0000 (+0000) Subject: * src/modest-text-utils.c: X-Git-Tag: git_migration_finished~1672 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=37b872c90fb875b9447e77b2a690abb4cadd2da6 * src/modest-text-utils.c: (modest_text_utils_quote_plain_text): Place signature before the original message Fixes NB#80646 pmo-trunk-r4183 --- diff --git a/src/modest-text-utils.c b/src/modest-text-utils.c index f2ca840..94d822e 100644 --- a/src/modest-text-utils.c +++ b/src/modest-text-utils.c @@ -834,10 +834,15 @@ modest_text_utils_quote_plain_text (const gchar *text, gsize len; gchar *attachments_string = NULL; - /* remaining will store the rest of the line if we have to break it */ q = g_string_new ("\n"); + if (signature != NULL) { + q = g_string_append (q, signature); + q = g_string_append_c (q, '\n'); + } q = g_string_append (q, cite); q = g_string_append_c (q, '\n'); + + /* remaining will store the rest of the line if we have to break it */ remaining = g_string_new (""); iter = text; @@ -884,11 +889,6 @@ modest_text_utils_quote_plain_text (const gchar *text, q = g_string_append (q, attachments_string); g_free (attachments_string); - if (signature != NULL) { - q = g_string_append_c (q, '\n'); - q = g_string_append (q, signature); - } - return g_string_free (q, FALSE); }