jasongilman / proto-repl

A Clojure Development Environment package for the Atom editor
https://atom.io/packages/proto-repl
MIT License
563 stars 50 forks source link

Output copied from repl contains special characters #214

Closed kurtharriger closed 7 years ago

kurtharriger commented 7 years ago

(initially commented in https://github.com/jasongilman/proto-repl/issues/163, but since its closed its I figured I should probably make this a new issue instead)

Hmm I seem to be having some issues with special characters in the copied text:

If I start a self hosted repl then define a literal map something like follows

{:a "asf" :b "adf"} it spits back out the result which looks basically as expected

{:b "adf", :a "asf"} Now copy the result from proto-repl Then in a terminal window I started a plain clojurescript repl rlwrap lein cljsbuild repl-rhino and paste the result

cljs.user=> {:b "adf", :a "asf"} This is what I get back

WARNING: Use of undeclared Var cljs.user/ :a at line 1 {:b\u00A0 "adf", nil "asf"} I had copied some output from the repl into my code and was fighting weird syntax errors I was unable to visually identify. It appears the \u00A0 is a which seems to be introduced in the formatting of the output in electron but creates some problems if just copied and pasted litterally