diff --git a/R/print_to_gt.R b/R/print_to_gt.R index 56642060..884d438d 100644 --- a/R/print_to_gt.R +++ b/R/print_to_gt.R @@ -448,7 +448,7 @@ convert_ws_unicode <- function(gt_table){ locations <- list(cells_body()) - if (any(!is.na(gt_table[["_stub_df"]]$row_id)) || any(!is.na(gt_table[["_stub_df"]]$group_id))){ + if (sum(c(!is.na(gt_table[["_stub_df"]]$row_id),!is.na(gt_table[["_stub_df"]]$group_id)) > 0)){ locations <- c(locations, list(cells_stub()))