Skip to content

Commit

Permalink
fix missing closing quote on elided strings, fix #23
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrand committed Dec 11, 2017
1 parent 6bd8b5d commit 5eb9561
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/unravel/pprint.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@
(concat (cons meta-open (spans m)) (cons te/space (spans v)) [te/kv-close]))
unrepl.java/class [(ansi (str (:form x)) (str "\33[33m" (:form x) "\33[m"))] ; to distinguish from symbols
unrepl/string (let [[s e] (:form x)
s (pr-str s)
s (subs s 0 (dec (count s)))] (cons (nobr s) (spans e)))
s (pr-str s)] (cons (nobr s) (spans e)))
unrepl/ratio (let [[n d] (:form x)]
[(str n "/" d)])

Expand Down Expand Up @@ -110,7 +109,7 @@
(concat [(delims "{")] (coll-spans (concat (dissoc x tags/unreachable) [kv]) [comma te/space] kv-spans) [(delims "}")])
(concat [(delims "{")] (coll-spans x [comma te/space] kv-spans) [(delims "}")]))
:else [(pr-str x)]))]
(spans x))))
(spans x))))

(defmethod core/spans [:text :unrepl/edn] [x to-as opts]
(spans x opts))
Expand Down

0 comments on commit 5eb9561

Please sign in to comment.