Code wraps even when using `code-overflow: scroll` in linked `.qmd` files of Quarto manuscript

Đang mở
#15,081 6 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
css, r
Lĩnh vực
frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

embed enhancement manuscript
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")
```
Wide code yields a horizontal scrollbar, as expected

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")
```
Wide code leads to wrapping, which is not desired
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...
Ngôn ngữ chính
JavaScript
Star
6.1k
Fork
478
Merge trung bình
17 giờ 7 phút
Pull request đã merge (30 ngày)
112

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của quarto-dev/quarto-cli

Tất cả issue của quarto-dev/quarto-cli

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.