diff --git a/news/changelog-1.10.md b/news/changelog-1.10.md index f3cadc2244c..84563f201ea 100644 --- a/news/changelog-1.10.md +++ b/news/changelog-1.10.md @@ -13,6 +13,10 @@ All changes included in 1.10: - ([#14261](https://github.com/quarto-dev/quarto-cli/issues/14261)): Fix theorem/example block titles containing inline code producing invalid Typst markup when syntax highlighting is applied. +### `revealjs` + +- ([#14354](https://github.com/quarto-dev/quarto-cli/pull/14354)): Fix trailing whitespace after author name on title slide when ORCID is not set. (author: @jnkatz) + ## Commands ### `quarto preview` diff --git a/src/resources/formats/revealjs/pandoc/title-fancy/title-slide.html b/src/resources/formats/revealjs/pandoc/title-fancy/title-slide.html index 1af2da68082..897d0d1ec00 100644 --- a/src/resources/formats/revealjs/pandoc/title-fancy/title-slide.html +++ b/src/resources/formats/revealjs/pandoc/title-fancy/title-slide.html @@ -8,7 +8,7 @@

$title$

$for(by-author)$
-$if(by-author.url)$$endif$$if(by-author.name.literal)$$by-author.name.literal$$endif$$if(by-author.url)$$endif$ $if(by-author.orcid)$ $endif$ +$if(by-author.url)$$endif$$if(by-author.name.literal)$$by-author.name.literal$$endif$$if(by-author.url)$$endif$$if(by-author.orcid)$ $endif$
$if(by-author.email)$
diff --git a/tests/docs/smoke-all/revealjs/title-fancy-author-no-orcid.qmd b/tests/docs/smoke-all/revealjs/title-fancy-author-no-orcid.qmd new file mode 100644 index 00000000000..6a201b8fdfc --- /dev/null +++ b/tests/docs/smoke-all/revealjs/title-fancy-author-no-orcid.qmd @@ -0,0 +1,17 @@ +--- +title: "RevealJS Title Author No ORCID" +author: "Jane Doe" +format: revealjs +_quarto: + tests: + revealjs: + ensureFileRegexMatches: + - + - "Jane Doe\n
" + - + - "Jane Doe[ \t]+\n
" +--- + +## Slide + +Content