Skip to content

Commit

Permalink
replace utf line and double line utf8 to ascii
Browse files Browse the repository at this point in the history
  • Loading branch information
parmsam-pfizer committed Sep 25, 2023
1 parent 7b362f2 commit 643452b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/read_log_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#' @importFrom stringr str_detect
#' @importFrom stringr str_count
#' @importFrom stringr str_remove
#' @importFrom stringr str_replace_all
#'
#' @return tibble that ensures formatted subsections
#'
Expand All @@ -30,6 +31,9 @@ reformat_subsections <- function(log_txt) {
collapse = ""
)
}
# replace utf8 line and double line to ascii due to cli symbol variation
i <- stringr::str_replace_all(i, '\u2550', '=')
i <- stringr::str_replace_all(i, '\u2500', '-')
adj_log_txt <- c(adj_log_txt, i)
}
return(adj_log_txt)
Expand Down

0 comments on commit 643452b

Please sign in to comment.