Skip to content

Keywords with spaces breaks inspector and inline results #2756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bullfest opened this issue Mar 17, 2025 · 1 comment
Open

Keywords with spaces breaks inspector and inline results #2756

bullfest opened this issue Mar 17, 2025 · 1 comment

Comments

@bullfest
Copy link

There seem to be some issue with how keywords with spaces are handled as results.

The following snippet is a map with two entries

{(keyword "Hey there") 5
 (keyword "1 2")       12}

But in the inspector/inline result it's displayed as 3 entries.
Image

Image

@PEZ
Copy link
Collaborator

PEZ commented Mar 17, 2025

Oh, wow, I didn't even know that keywords with spaces was a thing, but of course they are.

It should be noted that keywords are basically treated as symbols by the reader and space isn't an allowed character. It's probably not wise to rely on keywords with spaces working. The Clojure team reserves all non-supported characters for future use, iirc.

That said, people use all kinds of non-supported characters in symbols and keywords, so we should have a look at this anyway.

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

No branches or pull requests

2 participants