Skip to content

Linebreaks for urls does not work in bibliography #12955

Open
@apfelpfluecker

Description

@apfelpfluecker

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

I have problems with linebreaks with long urls when rendering from Quarto to PDF. Also, the url is not formatted as an hyperlink, but this could also be a fail of the citation style (chicago).

Steps to reproduce

Reproducable Example in Quarto:

---
title: "testfile"
bibliography: references.bib
link-bibliography: true

format: pdf
---

# Heading

[see @nationaldemocraticinstitutePublicAttitudesGeorgia2016 and @nationaldemocraticinstitutePublicAttitudesGeorgia2022]

The Bibtex file:

@misc{nationaldemocraticinstitutePublicAttitudesGeorgia2016,
  title = {Public Attitudes in {{Georgia}}, {{November}} 2016},
  author = {{National Democratic Institute}},
  year = {2016},
  month = nov,
  publisher = {Caucasus Barometer},
  address = {https://www.caucasusbarometer.org/en/nn2016ge},
  urldate = {2025-06-10}
}

@misc{nationaldemocraticinstitutePublicAttitudesGeorgia2022,
  title = {Public Attitudes in {{Georgia}}, {{July-August}} 2022},
  author = {{National Democratic Institute}},
  year = {2022},
  month = jul,
  publisher = {Caucasus Barometer},
  address = {https://www.caucasusbarometer.org/en/nj2022ge},
  urldate = {2025-06-10}
}

Actual behavior

Behavior:
Image

Expected behavior

Expected behavior:
The url should break within the margins.

Your environment

  • IDE: RStudio 2025.05.0+496 "Mariposa Orchid" Release (f0b76cc00df96fe7f0ee687d4bed0423bc3de1f8, 2025-05-04) for Ubuntu Jammy
    Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) rstudio/2025.05.0+496 Chrome/132.0.6834.210 Electron/34.5.1 Safari/537.36, Quarto 1.7.32 (/opt/quarto/bin/quarto)
  • OS: Zorin OS 17.3 Education

Quarto check output

Quarto 1.7.32
[✓] Checking environment information...
      Quarto cache location: /home/zuk/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.6.3: OK
      Dart Sass version 1.85.1: OK
      Deno version 1.46.3: OK
      Typst version 0.13.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.7.32
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (external install)
      Chromium: 869685

[✓] Checking LaTeX....................OK
      Using: TinyTex
      Path: /home/zuk/.TinyTeX/bin/x86_64-linux
      Version: 2025

[✓] Checking Chrome Headless....................OK
      Chrome:  (not detected)

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

[✓] Checking Python 3 installation....OK
      Version: 3.10.12
      Path: /usr/bin/python3
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
      Version: 4.5.1
      Path: /usr/lib/R
      LibPaths:
        - /home/zuk/R/x86_64-pc-linux-gnu-library/4.5
        - /usr/local/lib/R/site-library
        - /usr/lib/R/site-library
        - /usr/lib/R/library
      knitr: 1.50
      rmarkdown: 2.29

[✓] Checking Knitr engine render......OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpandocupstreamBug is in upstream library

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions