News for hackers. Stuff that matters.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by lxgr on Thursday March 27, 2025 @08:56PM (#43500141)
That's one of my favorite features of macOS keyboard layouts, but it's so close to one of my least favorite ones – option + space inserting a non-breaking space.

I almost never want that, and when typing "space, en dash, space", it happens quite easily and is usually impossible to tell visually.

Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by akho on Friday March 28, 2025 @06:06AM (#43503484)
You always want a non-breaking space before a dash.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by lxgr on Friday March 28, 2025 @11:51AM (#43506911)
How so? Wouldn't this prevent line breaks around dashes bracketing parenthetical statements? That's the opposite of what I want!
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by akho on Saturday March 29, 2025 @03:05AM (#43513432)
Line starting with a dash can be mistaken for dialogue or dashed list, which is not what you want.

In any case: non-breaking space (or otherwise suppressed linebreak, if you don’t use a space) is the rule.