Mageia Bugzilla – Attachment 11247 Details for
Bug 25249
Firefox not pasting non-breaking spaces (upstream bug #359303)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Remove non-breaking spaces conversion when pasting text into a form field
remove-non-breaking-spaces-conversion.patch (text/plain), 899 bytes, created by
Davy Defaud
on 2019-08-09 17:55:42 CEST
(
hide
)
Description:
Remove non-breaking spaces conversion when pasting text into a form field
Filename:
MIME Type:
Creator:
Davy Defaud
Created:
2019-08-09 17:55:42 CEST
Size:
899 bytes
patch
obsolete
>diff -r 13352eab2e47 dom/base/nsPlainTextSerializer.cpp >--- a/dom/base/nsPlainTextSerializer.cpp Mon Apr 22 10:08:36 2019 +0000 >+++ b/dom/base/nsPlainTextSerializer.cpp Wed Apr 24 14:13:05 2019 +0200 >@@ -1105,20 +1105,13 @@ > > /** > * Prints the text to output to our current output device (the string >- * mOutputString). The only logic here is to replace non breaking spaces with a >- * normal space since most (all?) receivers of the result won't understand the >- * nbsp and even be confused by it. >+ * mOutputString). > */ > void nsPlainTextSerializer::Output(nsString& aString) { > if (!aString.IsEmpty()) { > mStartedOutput = true; > } > >- if (!(mFlags & nsIDocumentEncoder::OutputPersistNBSP)) { >- // First, replace all nbsp characters with spaces, >- // which the unicode encoder won't do for us. >- aString.ReplaceChar(kNBSP, kSPACE); >- } > mOutputString->Append(aString); > } >
diff -r 13352eab2e47 dom/base/nsPlainTextSerializer.cpp --- a/dom/base/nsPlainTextSerializer.cpp Mon Apr 22 10:08:36 2019 +0000 +++ b/dom/base/nsPlainTextSerializer.cpp Wed Apr 24 14:13:05 2019 +0200 @@ -1105,20 +1105,13 @@ /** * Prints the text to output to our current output device (the string - * mOutputString). The only logic here is to replace non breaking spaces with a - * normal space since most (all?) receivers of the result won't understand the - * nbsp and even be confused by it. + * mOutputString). */ void nsPlainTextSerializer::Output(nsString& aString) { if (!aString.IsEmpty()) { mStartedOutput = true; } - if (!(mFlags & nsIDocumentEncoder::OutputPersistNBSP)) { - // First, replace all nbsp characters with spaces, - // which the unicode encoder won't do for us. - aString.ReplaceChar(kNBSP, kSPACE); - } mOutputString->Append(aString); }
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25249
: 11247