Skip to content

Commit

Permalink
Update 27-cop-troubleshooting.qmd
Browse files Browse the repository at this point in the history
added fix for hyphenated statement titles.
  • Loading branch information
Schmuenzu authored Nov 18, 2024
1 parent e0b7228 commit 1b34564
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion chapters/copyediting/27-cop-troubleshooting.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,16 @@ __L-a__. This statement might generate an error!
:::
```

**Fix**. Surround the dash with spaces
**Fix 1**. Use the HTML entity for non-breaking hyphen (`‑`)

```
::: statement
__L‑a__. This will not generate an error.
:::
```
Caution: depending on the length of the hyphenated term and the surrounding text---especially if you refer to the statement intext with the identifier---this might mess up the horizontal spacing of lines since the term will not be split up at the hyphen. To avoid this, you can refer to the statement with an internal link, i.e., `[L-a](#statement-id)`.

**Fix 2 (If Fix 1 Fails)**. Surround the dash with spaces

```
::: statement
Expand Down

0 comments on commit 1b34564

Please sign in to comment.