### Bug description

Including subcabs in a multi-table layout produces cross-refs and well formatted tables.

But omitting subcabs leaves the cross-ref unresolved *and* horizontal scroll-bars on the tables where there wasn't previously.


### Steps to reproduce

````qmd
---
title: results
format: html
---

Refer to @tbl-fenced.

```{r}
#| label: tbl-fenced
#| tbl-cap: "Two tables"
#| layout-ncol: 2

gt::gt(mtcars[1:10, ])
gt::gt(mtcars[11:19, ])
```
````

### Expected behavior

Multi-table layout should have a cross-ref even if it lacks `tbl-subcap`s and tables should not have horizontal scroll bars.

### Actual behavior

The cross ref is not resolved, and the tables have horizontal scrollbars

### Your environment

- Neovim 0.10
- Windows 10 (19044)

### Quarto check output

```
C:\Users\walki\Desktop>quarto check
A new release of Deno is available: 1.28.2 → 1.34.3 Run `deno upgrade` to install it.

[>] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
      Version: 1.3.361
      Path: C:\Users\walki\AppData\Local\Programs\Quarto\bin
      CodePage: 1252

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

[>] Checking Python 3 installation....OK
      Version: 3.11.1
      Path: C:/Users/walki/AppData/Local/Programs/Python/Python311/python.exe
      Jupyter: 5.3.0
      Kernels: ir, python3

(-) Checking Jupyter engine render....0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[>] Checking Jupyter engine render....OK

[>] Checking R installation...........OK
      Version: 4.2.1
      Path: C:/PROGRA~1/R/R-42~1.1
      LibPaths:
        - C:/Users/walki/AppData/Local/R/win-library/4.2
        - C:/Program Files/R/R-4.2.1/library
      knitr: 1.42
      rmarkdown: 2.21

[>] Checking Knitr engine render......OK
```
2023-06-17T00:09:00Z
fisher-j
duplicate enhancement crossref
closed
Formatting problems with multiple tables
https://github.com/quarto-dev/quarto-cli/issues/5956