proto-repl icon indicating copy to clipboard operation
proto-repl copied to clipboard

left angle bracket ('<') causes output to cut off

Open chriswatrous opened this issue 6 years ago • 1 comments

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

chriswatrous avatar Jan 15 '19 03:01 chriswatrous

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 "&lt;", it works as expected. This... is a surprise, to say the least.

bryanduxbury avatar Sep 25 '19 17:09 bryanduxbury