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

Nested cli::cli() calls are displayed out of order #497

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

Nested cli::cli() calls are displayed out of order #497

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

Comments

@davidchall
Copy link
Contributor

I'm not sure if this is intended behavior, so I've opened an issue. If it is intended behavior, perhaps it's worth documenting?

When nesting cli::cli() calls, it is possible for the messages to be displayed out of order.

cli::cli({
  cli::cli_h1("Header")
  cli::cli(cli::cli_text("Some text"))
  cli::cli_text("Some more text")
})
#> Some text
#> 
#> ── Header ──────────────────────────────────────────────────────────────────────
#> Some more text

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

@gaborcsardi gaborcsardi added this to the 3.4.0 milestone Aug 23, 2022
@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label 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