sanel / monroe

Clojure nREPL client for Emacs
161 stars 21 forks source link

Newlines are added to output #2

Closed sanel closed 10 years ago

sanel commented 10 years ago

Monroe will append newlines to output, causing text in REPL sometimes to look different than in Clojure builtin REPL. Here are the samples:

Monroe (C-c C-d on symbol):

user=> -------------------------

clojure.core/map

([f coll] [f c1 c2] [f c1 c2 c3] [f c1 c2 c3 & colls])

  returns a lazy sequence consisting of the result of applying f to the
  set of first items of each coll, followed by applying f to the set
  of second items in each coll, until any one of the colls is
  exhausted.  any remaining items in other colls are ignored. function
  f should accept number-of-colls arguments.
nil

Monroe (calling doc in REPL buffer):

user=> (doc map)
-------------------------

clojure.core/map

([f coll] [f c1 c2] [f c1 c2 c3] [f c1 c2 c3 & colls])

  Returns a lazy sequence consisting of the result of applying f to the
  set of first items of each coll, followed by applying f to the set
  of second items in each coll, until any one of the colls is
  exhausted.  Any remaining items in other colls are ignored. Function
  f should accept number-of-colls arguments.

nil

Clojure builtin REPL:

user=> (doc map)
-------------------------
clojure.core/map
([f coll] [f c1 c2] [f c1 c2 c3] [f c1 c2 c3 & colls])
  Returns a lazy sequence consisting of the result of applying f to the
  set of first items of each coll, followed by applying f to the set
  of second items in each coll, until any one of the colls is
  exhausted.  Any remaining items in other colls are ignored. Function
  f should accept number-of-colls arguments.
nil