Skip to content

Categories not properly separated in blog table listing #7345

@EllaKaye

Description

@EllaKaye

Bug description

In the table style of listings for a blog, when categories are included as a column in the table and a blog post has more than one category, there's a bug in how those are displayed. It should print, e.g. "news, code, analysis" but instead prints "news,code,analysis" (without a space after each comma).

Steps to reproduce

There's a demo website at https://github.com/EllaKaye/categories-bug which is published at https://ellakaye.github.io/categories-bug/. This website is created by starting a new Quarto blog project from within RStudio and updating the following lines in index.qmd:

listing:
  type: table
  fields: [date, title, categories]

Expected behavior

There should be a space after each comma when there's more than one category for a post.

Actual behavior

There is no space after each comma when there's more than one category for a post

Your environment

  • RStudio 2023.09.0+463
  • macOS Sonoma 14.0

Quarto check output

This bug is present in the current release version, 1.3.450. I also checked in the pre-release before submitting this report and that's the output below (and the version used in the repo listed above).

Quarto 1.4.446
[✓] 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.446
      Path: /Applications/quarto/bin

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

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

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

[✓] Checking Python 3 installation....OK
      Version: 3.9.6
      Path: /Library/Developer/CommandLineTools/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.3.1
      Path: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources
      LibPaths:
        - /Users/ellakaye/Library/R/arm64/4.3/library
        - /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
      knitr: 1.42
      rmarkdown: 2.21

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinglistingstriaged-toIssues that were not self-assigned, signals that an issue was assigned to someone.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions