Code wraps even when using `code-overflow: scroll` in linked `.qmd` files of Quarto manuscript
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
Start by reproducing with the two files in the report: a manuscript project whose _quarto.yml sets code-overflow: scroll, with index.qmd at the root and notebooks/analyses.qmd in a subfolder. Compare the rendered pre output for each file to see where the wrapping comes from, since the root page scrolls and the linked file does not. Done means the linked file's code blocks scroll horizontally like the index page, with the option applied consistently across the manuscript.
由索引模型根據 Issue 內容生成。
描述
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
When writing a Quarto manuscript, my linked .qmd files wrap long lines of code rather than applying a horizontal sidebar, even when specifying code-overflow: scroll in my _quarto.yml. Interestingly, the horizontal scrollbar works fine in the index.qmd file. However, the code lines wrap (rather than using a horizontal scrollbar) for linked .qmd files (e.g., files placed in a "notebooks" folder).
Steps to reproduce
_quarto.yml:
project:
type: manuscript
format:
html:
code-overflow: scroll
toc: true
index.qmd (this code yields a horizontal scrollbar, as expected):
---
title: "my-empty-project"
---
```{r}
#| results: hold
print("Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World!")
print("Bye")
```
notebooks/analyses.qmd (this code wraps, which is not desired):
---
title: "Analyses"
---
```{r}
#| results: hold
print("Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World!")
print("Bye")
```
Actual behavior
The long code lines wrap.
Expected behavior
Applying a horizontal scrollbar to scroll the wide code.
Your environment
Positron Version: 2026.10.0 (system setup) build 297
Windows 11
Quarto check output
E:\Documents\GitHub\apaquartoReprex> quarto check
Quarto 1.10.18
[>] Checking environment information...
Quarto cache location: C:\Users\it_petersen\AppData\Local\quarto
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.10.0: OK
Dart Sass version 1.101.0: OK
Deno version 2.7.14: OK
Typst version 0.15.1: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.10.18
Path: c:\Program Files\Positron\resources\app\quarto\bin
CodePage: 1252
[>] Checking tools....................OK
TinyTeX: (not installed)
Chrome Headless Shell: (not installed)
VeraPDF: (not installed)
[>] Checking LaTeX....................OK
Tex: (not detected)
[>] Checking Chrome Headless....................OK
Using: Chrome found on system
Path: C:\Program Files\Google\Chrome\Application\chrome.exe
Source: Windows Registry
[>] Checking basic markdown render....OK
[>] Checking R installation...........OK
Version: 4.5.3
Path: C:/R/R-4.5.3
LibPaths:
- C:/R/Packages
- C:/R/R-4.5.3/library
knitr: 1.52
rmarkdown: 2.32
[>] Checking Knitr engine render......OK
[>] Checking Python 3 installation....OK
Version: 3.13.13
Path: C:/Program Files/Python313/python.exe
Jupyter: 5.9.1
Kernels: ark, python3
(\) Checking Jupyter engine render....[IPKernelApp] WARNING | Kernel is running over TCP without encryption. All communication (including code and outputs)is sent in plain text and is susceptible to eavesdropping. Use IPC transport or launch with kernel manager-provisioned CurveZMQ keys to enable transport encryption.
[>] Checking Jupyter engine render....OK
[>] Checking Julia installation...
- 主要語言
- JavaScript
- 星號
- 6.1k
- 分支
- 478
- 平均合併
- 17 小時 53 分鐘
- 30 天內合併 PR
- 135
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
quarto-dev/quarto-cli 的其他 Issue
-
accessibility bug embed
難度 2/5 1-3 小時 新手友好度 85/100
quarto-dev/quarto-cli#15306 ·
維護者通常 1 天內回覆
-
bootstrap bug themes
難度 2/5 1-3 小時 新手友好度 82/100
quarto-dev/quarto-cli#15304 ·
維護者通常 1 天內回覆
-
accessibility bug code-blocks html themes
難度 2/5 1-3 小時 新手友好度 78/100
quarto-dev/quarto-cli#15303 ·
維護者通常 1 天內回覆
-
accessibility brand bug dark-mode
難度 2/5 1-3 小時 新手友好度 82/100
quarto-dev/quarto-cli#15301 ·
維護者通常 1 天內回覆
-
bootstrap bug html tables
難度 2/5 1-3 小時 新手友好度 75/100
quarto-dev/quarto-cli#15300 · 1 則留言 ·
維護者通常 1 天內回覆
查看 quarto-dev/quarto-cli 的全部 Issue
相似的 Issue
-
難度 1/5 1-3 小時 新手友好度 87/100
OWASP/CheatSheetSeries#2905 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
ComposioHQ/composio#5249 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 84/100
zilliztech/memsearch#838 ·
維護者通常 1 天內回覆
-
[DOCS] Nine one-colon directives hide code examples and notes in the reference docs (e.g. CustomJS)未關閉TRIAGE
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
cdx-audit output written to a pipe is cut off at 64 KiB可能重新可做 關聯的 PR 已關閉且未合併。 未關閉bug mode:cli
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆