mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-15 22:44:13 +00:00
Bug #331265 --> tab and line feed issues with the new mail alert notification for Thunderbird. sr=bienvenu
This commit is contained in:
parent
29d82afeff
commit
82d26ca149
@ -2075,7 +2075,7 @@
|
||||
msgPopup.setAttribute('subject', msgHdr.mime2DecodedSubject);
|
||||
|
||||
// TO DO: worry about character set conversions
|
||||
var previewText = msgHdr.getStringProperty('preview'); // replace tabs, line returns, etc. with a space
|
||||
var previewText = msgHdr.getStringProperty('preview');
|
||||
if (previewText)
|
||||
msgPopup.setAttribute('previewText', previewText);
|
||||
|
||||
|
@ -5216,6 +5216,9 @@ nsresult nsMsgDBFolder::GetMsgPreviewTextFromStream(nsIMsgDBHdr *msgHdr, nsIInpu
|
||||
rv = parser->Parse(msgBodyStr, 0, NS_LITERAL_CSTRING("text/html"), PR_TRUE);
|
||||
CopyUTF16toUTF8(bodyText, msgBody);
|
||||
}
|
||||
|
||||
// replaces all tabs and line returns with a space, then trims off leading and trailing white space
|
||||
msgBody.CompressWhitespace(PR_TRUE, PR_TRUE);
|
||||
msgHdr->SetStringProperty("preview", msgBody.get());
|
||||
return rv;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user