proto-repl
proto-repl copied to clipboard
left angle bracket ('<') causes output to cut off
A left angle bracket <
, causes printed output to get cut off.
For example if I evauate (println "abc<def")
, I get
abc
when I should get
abc<def
I discovered this while learning core.async:
> (doc <!)
-------------------------
clojure.core.async/
If I use with-out-str, I can see that the whole text is there but just not getting printed.
> (with-out-str
(doc <!))
"-------------------------\nclojure.core.async/<!\n([port])\n takes a val from port. Must be called inside a (go ...) block. Will\n return nil if closed. Will park if nothing is available.\n"
bash> apm -v
apm 2.1.2
npm 6.2.0
node 8.9.3 x64
atom 1.33.1
python 2.7.14
git 2.16.2
macOS 10.14.2 proto-repl 1.4.24
I ran into a similar issue. It looks like it has to do with the < and > being interpreted as HTML tags in some way. If you replace "<" with "<", it works as expected. This... is a surprise, to say the least.