Skip to content

ansi_collapse() with 1 element prints it twice if both width and style = "head" are set #590

@DesiQuintans

Description

@DesiQuintans
library(cli)

ansi_collapse(1)
#> [1] "1"
ansi_collapse(1, style = "head")
#> [1] "1"
ansi_collapse(1, style = "head", width = 70)
#> [1] "1, and 1"
ansi_collapse(1, style = "head", width = 70, last = " and again ")
#> [1] "1 and again 1"

Created on 2023-03-17 with reprex v2.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviortidy-dev-day 🤓Tidyverse Developer Day rstd.io/tidy-dev-day

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions