Fix small issue with patch for bug 361334 (Onbeforeunload dialog has too many line breaks), r+sr=jst

git-svn-id: svn://10.0.0.236/trunk@215690 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
martijn.martijn%gmail.com
2006-11-22 18:41:11 +00:00
parent 102d30ad22
commit cb46a225ca

View File

@@ -1196,8 +1196,7 @@ DocumentViewerImpl::PermitUnload(PRBool *aPermitUnload)
nsAutoString msg;
if (len == 0) {
msg = preMsg + StringHead(event.text, len) +
NS_LITERAL_STRING("\n\n") + postMsg;
msg = preMsg + NS_LITERAL_STRING("\n\n") + postMsg;
} else {
msg = preMsg + NS_LITERAL_STRING("\n\n") +
StringHead(event.text, len) +