Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bikeshed/h/parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ("<", "&"):
Expand Down
2 changes: 1 addition & 1 deletion docs/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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.



Expand Down
Loading