From 742c2d89521428d1cc5ce21496b35f87788effa5 Mon Sep 17 00:00:00 2001 From: Jenny Bryan Date: Fri, 22 Nov 2024 13:46:54 -0800 Subject: [PATCH] Attempt to get "or" between 2 .vals Approach taken from https://github.com/r-lib/cli/issues/681#issuecomment-2314892316 --- R/vignette.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/vignette.R b/R/vignette.R index f60517bda..2b7fcaaaf 100644 --- a/R/vignette.R +++ b/R/vignette.R @@ -144,7 +144,7 @@ check_vignette_extension <- function(ext) { if (! ext %in% c("Rmd", "rmd", "qmd")) { valid_exts_cli <- cli::cli_vec( c("Rmd", "qmd"), - style = list("vec-last" = ", or ") + style = list("vec-last" = " or ", "vec-sep2" = " or ") ) ui_abort(c( "Unsupported file extension: {.val {ext}}",