Set the preformatted output flag if appropriate

This commit is contained in:
akkana%netscape.com 1999-09-29 20:23:07 +00:00
parent 457d912bd5
commit 483314b211
2 changed files with 4 additions and 0 deletions

View File

@ -3377,6 +3377,8 @@ NS_IMETHODIMP nsHTMLEditor::OutputToString(nsString& aOutputString,
aOutputString = "";
return NS_OK;
}
else if (mFlags & eEditorPlaintextMask)
aFlags |= nsIDocumentEncoder::OutputPreformatted;
}
nsCOMPtr<nsIDocumentEncoder> encoder;

View File

@ -3377,6 +3377,8 @@ NS_IMETHODIMP nsHTMLEditor::OutputToString(nsString& aOutputString,
aOutputString = "";
return NS_OK;
}
else if (mFlags & eEditorPlaintextMask)
aFlags |= nsIDocumentEncoder::OutputPreformatted;
}
nsCOMPtr<nsIDocumentEncoder> encoder;