Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli::cli() fails when explicitly closing a container #496

Closed
davidchall opened this issue Jul 14, 2022 · 0 comments
Closed

cli::cli() fails when explicitly closing a container #496

davidchall opened this issue Jul 14, 2022 · 0 comments
Labels
bug an unexpected problem or unintended behavior
Milestone

Comments

@davidchall
Copy link
Contributor

When closing a container by explicitly passing the container ID, this raises an error when performed within a cli::cli() call.

cli::cli({
  cli::cli_ul("a bullet")
})
#> • a bullet

cli::cli({
  cli::cli_ul()
  cli::cli_li("a bullet")
  cli::cli_end()
})
#> • a bullet

cli::cli({
  lid <- cli::cli_ul()
  cli::cli_li("a bullet")
  cli::cli_end(lid)
})
#> Warning in is.null(id) || is.na(id): 'length(x) = 4 > 1' in coercion to
#> 'logical(1)'
#> Error in if (id == "body") {: the condition has length > 1

Created on 2022-07-14 by the reprex package (v2.0.1)

@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label Jul 14, 2022
@gaborcsardi gaborcsardi added this to the 3.4.0 milestone Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants