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 小时 26 分钟
- 30 天内合并 PR
- 126
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
quarto-dev/quarto-cli 的其他 Issue
-
enhancement localization
难度 2/5 1-3 小时 新手友好度 65/100
quarto-dev/quarto-cli#15268 · 1 条评论 ·
维护者通常 1 天内回复
-
html maintenance
难度 2/5 1-3 小时 新手友好度 84/100
quarto-dev/quarto-cli#15261 ·
维护者通常 1 天内回复
-
enhancement websites
难度 2/5 1-3 小时 新手友好度 78/100
quarto-dev/quarto-cli#15255 · 1 条评论 ·
维护者通常 1 天内回复
-
quarto.json.decode does not raise on invalid JSON, so pcall cannot catch it可能已有人在做 @sogav21 于 3 天前认领。 未关闭bug lua
难度 2/5 1-3 小时 新手友好度 84/100
quarto-dev/quarto-cli#15226 ·
维护者通常 1 天内回复
-
arrow-dark gives region markers a light band that fails contrast可能已有人在做 @vav7 于 2 天前认领。 未关闭accessibility bug themes
难度 1/5 1 小时以内 新手友好度 88/100
quarto-dev/quarto-cli#15222 ·
维护者通常 1 天内回复
查看 quarto-dev/quarto-cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 86/100
volcengine/OpenViking#7011 ·
维护者通常 1 天内回复
-
Issue: ready for confirmation Reported on 2.4.9 Triage: Dev.Experience
难度 2/5 1-3 小时 新手友好度 70/100
magento/magento2#41773 · 1 条评论 ·
维护者通常 5 天内回复
-
Upgrade listener stays on a custom server after close when `preClose` is set可能已有人在做 @RaphaelFakhri 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
fastify/fastify-websocket#388 ·
-
[推荐] 影夕视频未关闭
难度 1/5 1 小时以内 新手友好度 72/100
-
Perl - Readme Drift可能已有人在做 @Omnideth 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
CommunityToolkit/Aspire#2375 ·
维护者通常 2 天内回复