News for hackers. Stuff that matters.
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.