From b592c4915d2a45e7c3ecbf1ea9a1aa9ea10ebb4a Mon Sep 17 00:00:00 2001 From: "ducarroz%netscape.com" Date: Fri, 4 May 2001 00:35:14 +0000 Subject: [PATCH] Fix for bug 77422. Use formatted output to avoid hudge lines. R=varada, SR=mscott --- mailnews/compose/src/nsMsgSend.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mailnews/compose/src/nsMsgSend.cpp b/mailnews/compose/src/nsMsgSend.cpp index 1a56cf80b3a4..c29d67634413 100644 --- a/mailnews/compose/src/nsMsgSend.cpp +++ b/mailnews/compose/src/nsMsgSend.cpp @@ -73,6 +73,7 @@ #include "nsMimeTypes.h" #include "nsISmtpUrl.h" #include "nsIInterfaceRequestor.h" +#include "nsIDocumentEncoder.h" // for editor output flags // use these macros to define a class IID for our component. Our object currently @@ -1259,11 +1260,11 @@ nsMsgComposeAndSend::GetBodyFromEditor() char *attachment1_type = TEXT_HTML; // we better be "text/html" at this point PRInt32 attachment1_body_length = 0; - // + // // Query the editor, get the body of HTML! // nsString format; format.AssignWithConversion(TEXT_HTML); - PRUint32 flags = 0; + PRUint32 flags = nsIDocumentEncoder::OutputFormatted; PRUnichar *bodyText = nsnull; nsresult rv; PRUnichar *origHTMLBody = nsnull; @@ -1272,7 +1273,7 @@ nsMsgComposeAndSend::GetBodyFromEditor() // Content ID's already mEditor->GetContentsAs(format.GetUnicode(), flags, &bodyText); - // + // // If we really didn't get a body, just return NS_OK // if ((!bodyText) || (!*bodyText))