Some characters are being dropped from the printed representation of some of our types in the REPL:
user> (deftype Foo []
Object
(toString [this] "[[1 2 3]\n [4 5 6]\n [7 8 9]]"))
user.Foo
user> (defmethod print-method Foo [x writer] (.write writer (.toString x)))
#multifn[print-method 0x61590795]
user> (Foo.)
[[1 2 3]
[4 5 6]
[7 8 9]]
user> (str (Foo.))
"[[1 2 3]\n [4 5 6]\n [7 8 9]]"
After the second newline there, the space is getting dropped. Anyone seen anything like this?doesn't seem to happen in clj repl
@daslu --- fwiw, this thread may be relevant to printing things we were seeing during the development of your recent post. We are actively working on improving this area.
thanks!