Skip to content

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

@davidchall

Description

@davidchall

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions