Skip to content

Inconsistent formatting when interpolating into .code #517

@lionel-

Description

@lionel-
# Expected output
cli::format_inline("{.code foo = bar}")
#> [1] "`foo = bar`"

x <- "foo"
y <- "bar"

# Output with CRAN cli
cli::format_inline("{.code {x} = {y}}")
#> [1] "`` `foo` = `bar` ``"

# Output with dev cli
cli::format_inline("{.code {x} = {y}}")
#> [1] "`foo` = `bar`"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions