From cb46a225ca891909d0aff76ec3fb2a33fc1d627b Mon Sep 17 00:00:00 2001 From: "martijn.martijn%gmail.com" Date: Wed, 22 Nov 2006 18:41:11 +0000 Subject: [PATCH] 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 --- mozilla/layout/base/nsDocumentViewer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mozilla/layout/base/nsDocumentViewer.cpp b/mozilla/layout/base/nsDocumentViewer.cpp index 269f28fb3bd..01aeab57334 100644 --- a/mozilla/layout/base/nsDocumentViewer.cpp +++ b/mozilla/layout/base/nsDocumentViewer.cpp @@ -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) +