Skip to content

Commit

Permalink
fix because all gt objects have a _stub_df
Browse files Browse the repository at this point in the history
  • Loading branch information
bzkrouse committed Apr 11, 2024
1 parent 72e6b92 commit 9679606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/print_to_gt.R
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ convert_ws_unicode <- function(gt_table){

locations <- list(cells_body())

if (!is.null(gt_table[["_stub_df"]])){
if (any(!is.na(gt_table[["_stub_df"]]$row_id)) || any(!is.na(gt_table[["_stub_df"]]$group_id))){

locations <- c(locations,
list(cells_stub()))
Expand Down

0 comments on commit 9679606

Please sign in to comment.