### Bug description

The space between the entity type ("Figure", "Table",...) and its number in the entity label should be a non breaking space instead of a plain space, like in the cross reference link.

    ---
    format: html
    ---
     
    See @fig-test
    
    ```{r}
    #| label: fig-test
    #| fig-cap: "Test"
    plot(1)
    ```

producing : 

    ...
    <p>See <a href="[#fig-test](#fig-test)">Figure&nbsp;1</a></p>
    ...
    <figcaption class="figure-caption">Figure 1: Test</figcaption>
    ...

The figcaption text should have a `&nbsp;` like in the anchor :

        <figcaption class="figure-caption">Figure&nbsp;1: Test</figcaption>

* it will be similar between the crossref text and the label
* it's a common typographic convention

Thanks


RStudio 2022.07.1 Build 554
windows 10

### `quarto check` Output

```bash
[>] Checking Quarto installation......OK
      Version: 1.0.36
      Path: C:\Program Files\RStudio\bin\quarto\bin\
      CodePage: 1252

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....(None)

      Unable to locate an installed version of Python 3.
      Install Python 3 from https://www.python.org/downloads/

[>] Checking R installation...........OK
      Version: 4.1.1
      Path: C:/PROGRA~1/R/R-41~1.1
      LibPaths:
        - C:/Users/xxx/Documents/R/win-library/4.1
        - C:/Program Files/R/R-4.1.1/library
      rmarkdown: 2.14

[>] Checking Knitr engine render......OK
```

### `quarto tools check` Output

```bash
[>] Inspecting tools

Tool         Status                    Installed     Latest
chromium     Not installed             ---           869685
tinytex      External Installation     ---           v2022.08
```

### Checklist

- [X] [formatted your issue](https://yihui.org/issue/#please-format-your-issue-correctly) so it is easier for us to read?
- [X] included a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] documented the quarto version you're running, by pasting the output from running `quarto check` in the "Quarto Check Output" text area?
- [X] documented the version of the quarto tools you're running, by providing the output from running `quarto tools check` in the "Quarto Tools Check Output" text area?
- [X] documented the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] documented which operating system you're running? If on Linux, please provide the specific distribution as well.
- [X] upgraded to the latest version, including your versions of R, the RStudio IDE, and relevant R packages?
jjallaire
2022-08-08T15:33:03Z
dicorynia
bug
v1.1
closed
Add non breaking space in caption label
https://github.com/quarto-dev/quarto-cli/issues/1738