From 1cd0bc79d60f81c063d3430cc190c3cbbe587529 Mon Sep 17 00:00:00 2001 From: "akkana%netscape.com" Date: Wed, 29 Sep 1999 20:23:07 +0000 Subject: [PATCH] Set the preformatted output flag if appropriate git-svn-id: svn://10.0.0.236/trunk@49343 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/base/nsHTMLEditor.cpp | 2 ++ mozilla/editor/libeditor/html/nsHTMLEditor.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mozilla/editor/base/nsHTMLEditor.cpp b/mozilla/editor/base/nsHTMLEditor.cpp index 2012a09a449..60132e29a9e 100644 --- a/mozilla/editor/base/nsHTMLEditor.cpp +++ b/mozilla/editor/base/nsHTMLEditor.cpp @@ -3377,6 +3377,8 @@ NS_IMETHODIMP nsHTMLEditor::OutputToString(nsString& aOutputString, aOutputString = ""; return NS_OK; } + else if (mFlags & eEditorPlaintextMask) + aFlags |= nsIDocumentEncoder::OutputPreformatted; } nsCOMPtr encoder; diff --git a/mozilla/editor/libeditor/html/nsHTMLEditor.cpp b/mozilla/editor/libeditor/html/nsHTMLEditor.cpp index 2012a09a449..60132e29a9e 100644 --- a/mozilla/editor/libeditor/html/nsHTMLEditor.cpp +++ b/mozilla/editor/libeditor/html/nsHTMLEditor.cpp @@ -3377,6 +3377,8 @@ NS_IMETHODIMP nsHTMLEditor::OutputToString(nsString& aOutputString, aOutputString = ""; return NS_OK; } + else if (mFlags & eEditorPlaintextMask) + aFlags |= nsIDocumentEncoder::OutputPreformatted; } nsCOMPtr encoder;