Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default listing contains extraneous empty <a> tag in each item #7088

Closed
petrbouchal opened this issue Sep 29, 2023 · 0 comments
Closed

Default listing contains extraneous empty <a> tag in each item #7088

petrbouchal opened this issue Sep 29, 2023 · 0 comments
Labels
bug Something isn't working listings

Comments

@petrbouchal
Copy link

Bug description

In current pre-release, a default listing produces the code pasted below, which results in a slab of blank space at the top of each listing item.

Right below the tag, there is a

tag containing an empty tag. This results in an empty strip at the top of each listing item (reflecting the padding CSS setting for

tags).

This does not happen in the stable version.

<div id="listing-zacit" class="quarto-listing quarto-listing-container-default">
<div class="list quarto-listing-default">
<div class="quarto-post image-right" data-index="0" data-listing-file-modified-sort="1695670046091" data-listing-reading-time-sort="1" data-listing-word-count-sort="1">
<div class="body">
<p><a href="[../pruvodce/kde-zacit.html](http://localhost:4444/pruvodce/kde-zacit.html)"></a></p><a href="[../pruvodce/kde-zacit.html](http://localhost:4444/pruvodce/kde-zacit.html)">
<h3 class="no-anchor listing-title">
Průvodce: kde začít
</h3>
<div class="listing-subtitle">

</div>
</a>
</div>
<div class="metadata">
<p><a href="[../pruvodce/kde-zacit.html](http://localhost:4444/pruvodce/kde-zacit.html)"></a></p><a href="[../pruvodce/kde-zacit.html](http://localhost:4444/pruvodce/kde-zacit.html)">
</a>
</div>
</div>
</div>
<div class="listing-no-matching d-none">
Žádné nalezené výsledky
</div>
</div>
</div>

Steps to reproduce

The listing is specified like so in the page YAML:

listing:
  - id: rizeni
    categories: false
    sort: poradi
    type: default
    include: 
      blok: "rizeni"
    fields: 
      - title

and inserted using

:::{.pruvodce-box}

::: {#zacit}
:::

:::

Only one file matches the include filter. On the same page, I have other listings with the same setup that multiple files and the same issues appears in them as well.

The one matches file is:

---
title: "Průvodce: kde začít"
blok: ['zacit']
poradi: 1
zacit: true
editor: source
aliases: 
  - /pruvodce/kde-zacit
---

Expected behavior

No extraneous tags with no content should be inserted.

Actual behavior

Each listing item contains an empty tag inside a

tag. If

tags have a non-zero padding param set in CSS, one ends up with a slab of empty space above the title of each heading item.

Your environment

  • quarto: 1.3.492
  • RStudio: Version 2023.09.0+448 (2023.09.0+448)
  • MacOS: 13.5.2 (22G91)

Quarto check output

quarto check
Quarto 1.4.392
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.8: OK
Dart Sass version 1.55.0: OK
Deno version 1.33.4: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.392
Path: /Applications/quarto/bin

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

[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/petr/Library/TinyTeX/bin/universal-darwin
Version: 2022

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

[✓] Checking Python 3 installation....OK
Version: 3.11.5
Path: /opt/homebrew/opt/python@3.11/bin/python3.11
Jupyter: 5.1.3
Kernels: python3, ir

(-) Checking Jupyter engine render....0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
Version: 4.3.1
Path: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources
LibPaths:
- /Users/petr/Library/R/4.3/library
- /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
knitr: 1.43
rmarkdown: 2.22

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

@petrbouchal petrbouchal added the bug Something isn't working label Sep 29, 2023
dragonstyle added a commit that referenced this issue Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working listings
Projects
None yet
Development

No branches or pull requests

2 participants