Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 157 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

enter image description here

This made me 0_O for a while, and I was thinking that it's a bug--and wondering how to circumvent it---until I realized that the hyphen in electro-chemistry wasn't a soft hyphen but an actual hyphen. It should read:

You are attempting to create the tag electrochemistry ; however the tag
electro-chemistry already exists!

(The line break is important)

Please, can this be improved? It's confusing when the line break comes right after the hyphen.

share|improve this question
I know that the line break is browser placed--so why not use something like <wbr>? (rather old tag, dunno how encouraged it is nowadays) – Manishearth May 6 '12 at 16:29

Wasn't a soft hyphen? A soft hyphen is just a normal hyphen which isn't visually marked on the page (meant to allow a word to be broken in this place, similar to a <wbr>). In order to force it to remain one word, they need to use a non-breaking hyphen U+2011 (or &#8209; for the entity).

Also, a <wbr> wouldn't do anything. That only specifies that you can break it here. But the browser still thinks it can get the electro- in on that line, so it gets ignored.

See the jsFiddle.

I suppose they could just replace the hyphens with the non-breaking hyphen for the tags when they generate that message.

share|improve this answer
Oh right, that's not a soft hyphen.. I confused 'soft hyphen' with whatever-you-call-a-line-break hyphen. And, doesn't the browser adjust to accomodate a nearby linebreak to a wbr? I think wbrs would work (on my mobile, the jsfiddle has working wbrs) – Manishearth May 6 '12 at 17:16
But a nonbreaking hyphen seems like a good alternative :) Go Unicode! – Manishearth May 6 '12 at 17:17
@Manishearth: No, they don't. They're really not even meant to be used in fluid text, only to indicate potential breaking points in long words and to indicate potential line breaks in pre-formatted text. In a line like this, it's useless. – animuson May 6 '12 at 17:21
hmmm. OK, then, non breaking hyphen seems fine :) – Manishearth May 6 '12 at 17:22
@MrLister: It would only be replaced in the message, not the actual tag name. – animuson May 6 '12 at 17:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .