From bb3ba387cd69e21f69bab554bca5aada0e590fe3 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Wed, 21 Jan 2009 18:25:36 +0000 Subject: [PATCH] Use plain text body quote in html too pmo-trunk-r7225 --- src/modest-text-utils.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modest-text-utils.c b/src/modest-text-utils.c index 9619c8d..5a34f6b 100644 --- a/src/modest-text-utils.c +++ b/src/modest-text-utils.c @@ -906,6 +906,7 @@ modest_text_utils_quote_body (GString *output, const gchar *text, iter = text; len = strlen(text); + remaining = g_string_new (""); do { l = get_next_line (text, len, iter); iter = iter + l->len + 1; @@ -1004,13 +1005,17 @@ modest_text_utils_quote_html (const gchar *text, "\n
\n"); if (text || cite || signature) { + GString *quoted_text; g_string_append (result_string, "
\n");
 		if (signature) {
 			quote_html_add_to_gstring (result_string, SIGNATURE_MARKER);
 			quote_html_add_to_gstring (result_string, signature);
 		}
 		quote_html_add_to_gstring (result_string, cite);
-		quote_html_add_to_gstring (result_string, text);
+		quoted_text = g_string_new ("");
+		quoted_text = modest_text_utils_quote_body (quoted_text, text, ">", limit);
+		quote_html_add_to_gstring (result_string, quoted_text->str);
+		g_string_free (quoted_text, TRUE);
 		if (attachments) {
 			gchar *attachments_string = quoted_attachments (attachments);
 			quote_html_add_to_gstring (result_string, attachments_string);
-- 
1.7.9.5