Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

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

Open
chriswatrous opened this issue Jan 15, 2019 · 1 comment
Open

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

chriswatrous opened this issue Jan 15, 2019 · 1 comment

Comments

@chriswatrous
Copy link

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

@bryanduxbury
Copy link

bryanduxbury commented Sep 25, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants