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

Inconsistent formatting when interpolating into .code #517

Closed
lionel- opened this issue Aug 31, 2022 · 0 comments
Closed

Inconsistent formatting when interpolating into .code #517

lionel- opened this issue Aug 31, 2022 · 0 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@lionel-
Copy link
Member

lionel- commented Aug 31, 2022

# 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`"
@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label Aug 31, 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