-
Notifications
You must be signed in to change notification settings - Fork 83
Closed
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior
Milestone
Description
In functions with wrapping, we use the form feed character "\f" to force a newline. I've found that this is handled inconsistently though. If the form feed is at the end of the string, then it is ignored.
# middle: works
cli::cli_text("a\fb")
#> a
#> b
# start: works
cli::cli_text("\fb")
#>
#> b
# end: fails
cli::cli_text("a\f")
#> aCreated on 2022-06-30 by the reprex package (v2.0.1)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior