From 099529f6b73ff4bb9bc86930f6c6004a3789ebf9 Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Thu, 19 Aug 2004 21:50:17 +0000 Subject: [PATCH] fix 242973 mapi send with ui when body text has linebreaks, sr=mscott git-svn-id: svn://10.0.0.236/trunk@161035 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/compose/src/nsMsgCompose.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/mailnews/compose/src/nsMsgCompose.cpp b/mozilla/mailnews/compose/src/nsMsgCompose.cpp index 35865b29a11..dc931a854be 100644 --- a/mozilla/mailnews/compose/src/nsMsgCompose.cpp +++ b/mozilla/mailnews/compose/src/nsMsgCompose.cpp @@ -469,6 +469,11 @@ nsMsgCompose::ConvertAndLoadComposeWindow(nsString& aPrefix, TranslateLineEnding(aBuf); TranslateLineEnding(aSignature); + // this is probably a mapi send, so we need to replace '\n' with
+ // so that the line breaks won't be lost by html. + if (!aQuoted && aHTMLEditor) + aBuf.ReplaceSubstring(NS_LITERAL_STRING("\n").get(), NS_LITERAL_STRING("
").get()); + // We're going to be inserting stuff, and MsgComposeCommands // may have set the editor to readonly in the recycled case. // So set it back to writable.