From 483314b2111a06a826fa131726d10730a6432b8c 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 --- editor/base/nsHTMLEditor.cpp | 2 ++ editor/libeditor/html/nsHTMLEditor.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/editor/base/nsHTMLEditor.cpp b/editor/base/nsHTMLEditor.cpp index 2012a09a449b..60132e29a9e5 100644 --- a/editor/base/nsHTMLEditor.cpp +++ b/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/editor/libeditor/html/nsHTMLEditor.cpp b/editor/libeditor/html/nsHTMLEditor.cpp index 2012a09a449b..60132e29a9e5 100644 --- a/editor/libeditor/html/nsHTMLEditor.cpp +++ b/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;