quarto-dev / quarto-dev/quarto-cli

Linebreaks for urls does not work in bibliography

Aperta
#12,955 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug pandoc upstream
Lingua principale
JavaScript
Stelle
6k
Fork
458
Merge medio
1g 9h
PR unite (30g)
41

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Start with the provided Quarto reproducer in testfile.qmd and its references.bib, then render it to PDF with Quarto 1.7.32 and the Chicago citation style. Compare the bibliography URL wrapping and hyperlink behavior with the expected output; done means long URLs break within the margins and are formatted as links where appropriate.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript, latex
Ambito
documentation
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.