[Gtk] NBSP are not replaced when using X clipboard
[WebKit-https.git] / Source / WebCore / platform / gtk / DataObjectGtk.cpp
index adfc66e..0bd304b 100644 (file)
@@ -35,8 +35,11 @@ static void replaceNonBreakingSpaceWithSpace(String& str)
 
 String DataObjectGtk::text() const
 {
-    if (m_range)
-        return m_range->text();
+    if (m_range) {
+        String text = m_range->text();
+        replaceNonBreakingSpaceWithSpace(text);
+        return text;
+    }
     return m_text;
 }