Skip to content

code wrap incorrectly with line number #3442

Open
@WAcry

Description

@WAcry

Bug description

IDE: VScode with Quarto 1.2.269

OS: Windows 11

Description:

Suppose I create a default web project.

Then I open the code wrap and line number in configs as below:

format:
  html:
    code-line-numbers: true
    code-overflow: wrap

Then if I have a code block with a very long line, it will look bad, as shown below in the first code block:

Clipboard_20221124 (1)

I have to close the code line number to make the wrapping code overflow works, as the second code block. The problem exists in different themes and fonts too.

Checklist

  • Please include 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.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-annotationcode-blocksenhancementNew feature or requestthemesRelated to HTML theming or any other style related issue (like highlight-style)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions