Skip to content

Commit

Permalink
fix invalid multibyte string
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Aug 29, 2023
1 parent 082baec commit 49c1277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/export_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ print.insight_table <- function(x, ...) {
final_row <- paste0(final[row, ], collapse = sep)
# check if we have an empty row, and if so, fill with an
# "empty line separator", if requested by user
if (!is.null(empty_line) && all(nchar(trim_ws(final[row, ]), type = "width") == 0)) {
if (!is.null(empty_line) && !any(nzchar(trim_ws(final[row, ])))) {
# check whether user wants to have a "cross" char where vertical and
# horizontal lines (from empty line separator) cross. But don't add
# a "cross" when the empty line is the last row in the table...
Expand Down

0 comments on commit 49c1277

Please sign in to comment.