DOCX: callouts end with an empty paragraph, also when not needed
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 81/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- javascript
- Bereich
- documentation
Rechercherichtung
Lies src/resources/filters/quarto-post/docx.lua um die Zeilen 101–107 herum, wo der Issue besagt, dass der leere Absatz bedingungslos hinzugefügt wird. Vergleiche Callout-Inhalte, die mit einem Absatz enden, mit Inhalten, die mit einer Tabelle enden. Rendere anschließend das bereitgestellte DOCX-Beispiel und untersuche word/document.xml. Erledigt ist die Aufgabe, wenn der zusätzliche Absatz nur dann erscheint, wenn er nach Inhalten benötigt wird, die nicht bereits mit einem Absatz enden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
In DOCX output, callout boxes with the default appearance always end with an empty paragraph <w:p/> after their content. In LibreOffice Writer, it shows as an unnecessary empty line at the end of every such callout. (I don't have Word to check whether it shows the empty line there as well; it would be great if someone could confirm.)
The empty paragraph was added in #12642 (port of #8392, fixing #6357), because a table cell must end with a paragraph, e.g., when the callout content ends with a table.
However, it's added unconditionally:
https://github.com/quarto-dev/quarto-cli/blob/cda41021442b20964e10e265b9dcdf81f490c18e/src/resources/filters/quarto-post/docx.lua#L101-L107
Callouts with appearance="simple" or "minimal" are not affected.
The issue persists with the latest pre-release 1.12.3.
I investigated this with the help of an AI assistant, grounded in the Quarto source; I verified the findings myself.
Steps to reproduce
Create a source doc with DOCX output and a callout box:
---
format: docx
---
::: {.callout-note}
This is a callout.
:::
Run quarto render, and open the DOCX, e.g., in LibreOffice Writer.
Actual behavior
The callout's body cell in word/document.xml ends with an empty paragraph (abridged):
<w:tc>
<w:tcPr>...</w:tcPr>
<w:p>
...
<w:r>
<w:t xml:space="preserve">This is a callout.</w:t>
</w:r>
</w:p>
<w:p/>
</w:tc>
Here an annotated screenshot from LibreOffice:
Expected behavior
The empty paragraph is only added when the callout content does not already end with a paragraph, e.g., when it ends with a table.
Your environment
- IDE: none,
quarto renderon the command line - OS: Ubuntu Linux, kernel 7.0.0-43
- LibreOffice Writer 24.2.7.2
Quarto check output
$ quarto check
Quarto 1.11.9
[✓] Checking environment information...
Quarto cache location: /home/$USER/.cache/quarto
Project root: /home/$USER/
Project config: /home/$USER/_quarto.yml
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.10.0: OK
Dart Sass version 1.101.0: OK
Deno version 2.9.8: OK
Typst version 0.15.1: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.11.9
Path: /opt/quarto/bin
[✓] Checking tools....................OK
TinyTeX: v2026.04
Chrome Headless Shell: (not installed)
VeraPDF: (not installed)
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /home/$USER/.TinyTeX/bin/x86_64-linux
Version: 2026
[✓] Checking Chrome Headless....................OK
Using: Chrome found on system
Path: /usr/bin/google-chrome
Source: PATH
[✓] Checking basic markdown render....OK
[✓] Checking R installation...........OK
Version: 4.4.3
Path: /home/$USER/apps/miniforge3/lib/R
LibPaths:
- /home/$USER/apps/miniforge3/lib/R/library
knitr: 1.50
rmarkdown: 2.29
[✓] Checking Knitr engine render......OK
[✓] Checking Python 3 installation....OK
Version: 3.12.11 (Conda)
Path: /home/$USER/apps/miniforge3/bin/python
Jupyter: (None)
Jupyter is not available in this Python installation.
Install with conda install jupyter
[✓] Checking Julia installation...
- Vorherrschende Sprache
- JavaScript
- Sterne
- 6.2k
- Forks
- 492
- Ø Merge
- 15 Std. 15 Min.
- Gemergte PRs (30 T.)
- 94
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus quarto-dev/quarto-cli
-
bootstrap enhancement themes
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
quarto-dev/quarto-cli#15421 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
quarto-dev/quarto-cli#15408 ·
Maintainer antworten meist innerhalb von 1 Tag
-
accessibility bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
quarto-dev/quarto-cli#15401 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug lightbox
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
quarto-dev/quarto-cli#15393 ·
Maintainer antworten meist innerhalb von 1 Tag
-
accessibility bug website-navigation websites
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
quarto-dev/quarto-cli#15392 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in quarto-dev/quarto-cli
Ähnliche Issues
-
bug help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
LangerSword/gitone#7 ·
-
good first issue reliability security should-have
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 13 Tagen
-
[BUG]: chunkSource protocol stripping truncates URLs or reads an inner schemeEvtl. vergeben @Bensonbenyi hat das heute übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
Mintplex-Labs/anything-llm#7338 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag