Skip to content

Commit

Permalink
Fix width computation
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Nov 4, 2024
1 parent 37005ce commit 1010691
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/reporter-progress.R
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,9 @@ issue_header <- function(x, pad = FALSE) {
issue_summary <- function(x, rule = FALSE) {
header <- cli::style_bold(issue_header(x))
if (rule) {
header <- cli::rule(header)
# Don't truncate long test names
width <- max(cli::ansi_nchar(header) + 6, getOption("width"))
header <- cli::rule(header, width = width)
}

paste0(header, "\n", format(x))
Expand Down

0 comments on commit 1010691

Please sign in to comment.