Actually the first change ("\n" to NS_LINEBREAK) is not related and should be not considered. Sorry for noise. (It is buggy a bit - it probably will not work if say on Windows you will work with letter saved on Unix. This is the reason why i double the replace with " \n" and " \r\n" to make sure it will work with letters saved on any platform.)
Actually the first change ("\n" to NS_LINEBREAK) is not related and should be not considered. Sorry for noise. (It is buggy a bit - it probably will not work if say on Windows you will work with letter saved on Unix. This is the reason why i double the replace with " \n" and " \r\n" to make sure it will work with letters saved on any platform.)
Here is the final patch without this change:
diff -u -r1.460.2.28 nsMsgCompose.cpp compose/ src/nsMsgCompos e.cpp 8 Feb 2007 22:21:08 -0000 1.460.2.28 compose/ src/nsMsgCompos e.cpp 26 Mar 2007 05:26:16 -0000 :MailToUrl) ) ReplaceSubstrin g(NS_LITERAL_ STRING( "\n").get( ), NS_LITERAL_ STRING( "<br>") .get()) ;
--- mailnews/
+++ mailnews/
@@ -3831,6 +3831,13 @@
if (m_composeHTML && (mType == nsIMsgCompType::New || mType == nsIMsgCompType:
body.
+ if (!m_composeHTML) { string( NS_LITERAL_ STRING( " \n").get(), string( NS_LITERAL_ STRING( " \r\n").get(), omposeWindow( empty, body, tSignature,
PR_FALSE, m_composeHTML);
+ body.ReplaceSub
+ NS_LITERAL_STRING(" ").get());
+ body.ReplaceSub
+ NS_LITERAL_STRING(" ").get());
+ }
+
nsString empty;
rv = ConvertAndLoadC