You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for all your work on this incredible package!
I just noticed that single newline (\n) characters are seemingly ignored in cli_abort but double newlines (\n\n) are respected.
Is this expected behaviour?
What is the recommended way to insert a single linebreak into a cli_abort error message?
Reprex (using version cli_3.5.0) :
library(cli)
# single newline character doesn't affect error message
cli_abort("Hello\nWorld")
#> Error:#> ! Hello World#> Backtrace:#> ▆#> 1. └─cli::cli_abort("Hello\nWorld")#> 2. └─rlang::abort(...)# two next to each other lead to rendered linebream
cli_abort("Hello\n\nWorld")
#> Error:#> ! Hello#> #> World#> Backtrace:#> ▆#> 1. └─cli::cli_abort("Hello\n\nWorld")#> 2. └─rlang::abort(...)
Thanks for all your work on this incredible package!
I just noticed that single newline (
\n
) characters are seemingly ignored incli_abort
but double newlines (\n\n
) are respected.cli_abort
error message?Reprex (using version
cli_3.5.0
) :Created on 2023-01-06 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: