cli
cli copied to clipboard
Nested `cli::cli()` calls are displayed out of order
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)