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

Proto REPL fails to show expandable inline view if result contains an unbreakable space #191

Open jasongilman opened 7 years ago

jasongilman commented 7 years ago

The follow Clojure result won't show up as an expandable result

{:args [0], :arg-map {v 0}}

Running this

protoRepl.parseEdn("{:v 0}")

Returns Uncaught Error: Map literal must contain an even number of forms(…)

The space between v and 0 has a character code of 160 which is a non-breaking space. This should be an easy fix. We should replace any instances of a non-breaking space (when parsing for inline results only) with a regular space.