diff --git a/bikeshed/h/parser/parser.py b/bikeshed/h/parser/parser.py index c036bf45dd..e6386474cd 100644 --- a/bikeshed/h/parser/parser.py +++ b/bikeshed/h/parser/parser.py @@ -473,8 +473,8 @@ def parseNode( if first2 == "—\n" or first3 == "--\n": match, i, _ = s.matchRe(start, emdashRe) if match is not None: - # Fix line-ending em dashes, or --, by moving the previous line up, so no space. - node = RawText.fromStream(s, start, i, "—\u200b") + # Fix line-ending em dashes, or --, by moving the previous line up with an extra space. + node = RawText.fromStream(s, start, i, " — ") return Ok(node, i) if first1 in ("<", "&"): diff --git a/docs/index.bs b/docs/index.bs index 8d09ce036e..1bdf636527 100644 --- a/docs/index.bs +++ b/docs/index.bs @@ -2047,7 +2047,7 @@ Typography Fixes {#typography} Bikeshed will automatically handle a few typographic niceties for you, ones that it can reliably detect: * Possessive apostrophes, and most contraction apostrophes, are automatically turned into curly right single quotes (`’`). -* Ending a line with `--` will turn it into an em dash (`—`) and pull the following line upwards so there's no space between the surrounding words and the dash. +* Ending a line with `--` will turn it into an em dash (`—`) and pull the following line upwards so there's a space between the surrounding words and the dash.