From 6746c025d5cdb4cd8f49b7bc3e339aa956b3d7c9 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 14 Jul 2000 21:13:47 +0000 Subject: put a

at the end of the header table. (I think there used to be * mail-format.c (write_headers): put a

at the end of the header table. (I think there used to be whitespace after it, but then some gtkhtml change got rid of it...) (handle_text_plain): Don't do this

. Instead, CONVERT_NL and
	CONVERT_SPACES and wrap it in . Now if the sender didn't
	include any newlines, it will be wrapped to the width of the
	window instead of extending off into infinity.

svn path=/trunk/; revision=4168
---
 mail/mail-format.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

(limited to 'mail/mail-format.c')

diff --git a/mail/mail-format.c b/mail/mail-format.c
index a161a000bb..93049a7aa0 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -420,7 +420,7 @@ write_headers (CamelMimeMessage *message, struct mail_format_data *mfd)
 			       camel_mime_message_get_subject (message),
 			       TRUE, mfd->html, mfd->stream);
 
-	mail_html_write (mfd->html, mfd->stream, "");
+	mail_html_write (mfd->html, mfd->stream, "

"); } @@ -480,14 +480,17 @@ handle_text_plain (CamelMimePart *part, const char *mime_type, return handle_text_plain_flowed (text, mfd); mail_html_write (mfd->html, mfd->stream, - "\n\n

\n");
+			 "\n\n\n");
 
-	htmltext = e_text_to_html (text, E_TEXT_TO_HTML_CONVERT_URLS);
+	htmltext = e_text_to_html (text,
+				   E_TEXT_TO_HTML_CONVERT_URLS |
+				   E_TEXT_TO_HTML_CONVERT_NL |
+				   E_TEXT_TO_HTML_CONVERT_SPACES);
 	g_free (text);
 	mail_html_write (mfd->html, mfd->stream, "%s", htmltext);
 	g_free (htmltext);
 
-	mail_html_write (mfd->html, mfd->stream, "
\n"); + mail_html_write (mfd->html, mfd->stream, "\n"); return TRUE; } -- cgit v1.2.3