aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/clipboard.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/clipboard.coffee b/lib/clipboard.coffee
index a9e2e82e..11542b11 100644
--- a/lib/clipboard.coffee
+++ b/lib/clipboard.coffee
@@ -9,7 +9,7 @@ Clipboard =
# http://groups.google.com/group/chromium-extensions/browse_thread/thread/49027e7f3b04f68/f6ab2457dee5bf55
copy: ({data}) ->
textArea = @_createTextArea()
- textArea.value = data
+ textArea.value = data.replace /\xa0/g, " "
document.body.appendChild(textArea)
textArea.select()
@@ -23,7 +23,7 @@ Clipboard =
document.execCommand("Paste")
value = textArea.innerText
document.body.removeChild(textArea)
- value
+ value.replace /\xa0/g, " "
root = exports ? (window.root ?= {})