From c76075c699dcbfc3ce5475b1db6716cdf66a102b 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 --- layout/base/nsDocumentViewer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layout/base/nsDocumentViewer.cpp b/layout/base/nsDocumentViewer.cpp index 269f28fb3bd..01aeab57334 100644 --- a/layout/base/nsDocumentViewer.cpp +++ b/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) +