Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Comments on Users can suggest tags with spaces (but the suggestion can't be approved)

Post

Users can suggest tags with spaces (but the suggestion can't be approved)

+8
−0

See this suggested edit, where the user suggested adding the tag "American English". Due to it having a space, I am unable to approve the edit, getting the message

Tags may not include spaces or underscores

Note: I changed the tag from "American English" to "American-English" to try to get it approved, but it still rejects it.

Even if that workaround had worked, though, this should still have been caught at the suggestion stage.

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

3 comment threads

Tag creation interface (2 comments)
Just to be sure, we don't want tags with spaces in them, right?? (4 comments)
Corresponding Github issue (1 comment)
Just to be sure, we don't want tags with spaces in them, right??
Trilarion‭ wrote over 2 years ago

Because technically I think we could have that and maybe it would make sense and then this would not be the bug but the error message would be it instead.

Monica Cellio‭ wrote over 2 years ago

Spaces in tags would likely lead to confusion in the editor -- when you type a space and there's no match, is that the end of a proposed new tag or a space in the middle of an existing or new tag? I think our intent was to not allow them and this is a bug.

Moshi‭ wrote over 2 years ago

Monica Cellio‭ given that tags are pretty clearly delimited in the editor, I don't think that there would be much confusion.

Trilarion‭ we could technically have that (in fact, we used to before the no-spaces rule was put in place) but for whatever reason that got removed (I forgot why since it was some time ago)

Trilarion‭ wrote over 2 years ago · edited over 2 years ago

We can technically for sure, otherwise people wouldn't be able to suggest them in edits. I kind of works.

To avoid confusion in the editor, one could delimit tags by comma and strip leading and trailing spaces but otherwise leave tags as they are. I don't think there is really a strict technical restriction available.

If we ever used tags as part of URLs we would have these slightly annoying %20 in them, but that also can be circumvented (replace space with "-" in URLs for example).

It really comes down to: Do we want them? Need to search for a corresponding discussion and if there is none, open one.