Skip to content

Commit

Permalink
Show class name in unknown tag message
Browse files Browse the repository at this point in the history
  • Loading branch information
quantsch committed Feb 15, 2024
1 parent 3979e7c commit 982581e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/rd-html.R
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,8 @@ as_html.tag <- function(x, ...) {
if (identical(class(x), "tag")) {
flatten_text(x, ...)
} else {
cli::cli_inform("Unknown tag: ", paste(class(x), collapse = "/"))
untag <- paste(class(x), collapse = "/")
cli::cli_warn("Unknown tag: {.val {untag}}")
""
}
}
Expand Down

0 comments on commit 982581e

Please sign in to comment.