cli icon indicating copy to clipboard operation
cli copied to clipboard

Nested `cli::cli()` calls are displayed out of order

Open davidchall opened this issue 3 years ago • 0 comments

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)

davidchall avatar Jul 14 '22 15:07 davidchall