Don't convert non-breaking spaces to spaces in text controls. Bug 218277,
patch by jst and jpl24 <jlurz24@gmail.com>, r=bryner, sr=dbaron git-svn-id: svn://10.0.0.236/trunk@206701 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2606,15 +2606,15 @@ nsTextControlFrame::GetValue(nsAString& aValue, PRBool aIgnoreWrap) const
|
||||
|
||||
if (mEditor && mUseEditor)
|
||||
{
|
||||
PRUint32 flags = nsIDocumentEncoder::OutputLFLineBreak;;
|
||||
PRUint32 flags = (nsIDocumentEncoder::OutputLFLineBreak |
|
||||
nsIDocumentEncoder::OutputPreformatted |
|
||||
nsIDocumentEncoder::OutputPersistNBSP);
|
||||
|
||||
if (PR_TRUE==IsPlainTextControl())
|
||||
{
|
||||
flags |= nsIDocumentEncoder::OutputBodyOnly;
|
||||
}
|
||||
|
||||
flags |= nsIDocumentEncoder::OutputPreformatted;
|
||||
|
||||
if (!aIgnoreWrap) {
|
||||
nsHTMLTextWrap wrapProp;
|
||||
if (::GetWrapPropertyEnum(mContent, wrapProp) &&
|
||||
|
||||
Reference in New Issue
Block a user