Skip to content

Commit

Permalink
Attempt to get "or" between 2 .vals
Browse files Browse the repository at this point in the history
Approach taken from r-lib/cli#681 (comment)
  • Loading branch information
jennybc committed Nov 22, 2024
1 parent 577e6bb commit 742c2d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/vignette.R
Original file line number Diff line number Diff line change
Expand Up @@ -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}}",
Expand Down

0 comments on commit 742c2d8

Please sign in to comment.