mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Set the preformatted output flag if appropriate
This commit is contained in:
parent
457d912bd5
commit
483314b211
@ -3377,6 +3377,8 @@ NS_IMETHODIMP nsHTMLEditor::OutputToString(nsString& aOutputString,
|
||||
aOutputString = "";
|
||||
return NS_OK;
|
||||
}
|
||||
else if (mFlags & eEditorPlaintextMask)
|
||||
aFlags |= nsIDocumentEncoder::OutputPreformatted;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDocumentEncoder> encoder;
|
||||
|
@ -3377,6 +3377,8 @@ NS_IMETHODIMP nsHTMLEditor::OutputToString(nsString& aOutputString,
|
||||
aOutputString = "";
|
||||
return NS_OK;
|
||||
}
|
||||
else if (mFlags & eEditorPlaintextMask)
|
||||
aFlags |= nsIDocumentEncoder::OutputPreformatted;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDocumentEncoder> encoder;
|
||||
|
Loading…
Reference in New Issue
Block a user