www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Zero-width space (U+200B) on dlang.org navigation panel

reply "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
Just out of curiosity: I noticed today that the navigation links on the
left-hand column of dlang.org have U+200B inserted after "."'s (such as
after "std."). What's the reason for this?

Incidentally, my browser is displaying it as an unknown character (a
browser bug, probably, or a screwed-up font) but I'm just curious about
why this is needed here. Shouldn't it just be straight ASCII, like
"std.algorithm" instead of "std.<U+200B>algorithm"?


T

-- 
We've all heard that a million monkeys banging on a million typewriters
will eventually reproduce the entire works of Shakespeare.  Now, thanks
to the Internet, we know this is not true. -- Robert Wilensk
Sep 16 2012
parent Jacob Carlborg <doob me.com> writes:
On 2012-09-17 04:57, H. S. Teoh wrote:
 Just out of curiosity: I noticed today that the navigation links on the
 left-hand column of dlang.org have U+200B inserted after "."'s (such as
 after "std."). What's the reason for this?

 Incidentally, my browser is displaying it as an unknown character (a
 browser bug, probably, or a screwed-up font) but I'm just curious about
 why this is needed here. Shouldn't it just be straight ASCII, like
 "std.algorithm" instead of "std.<U+200B>algorithm"?
I suggested adding zero-with space characters to allow the browser breaking long links on multiple lines. This makes the experience on mobile devices a lot better. -- /Jacob Carlborg
Sep 16 2012