Skip to content

Fix for gt_group objects printing through knitr/Quarto#1332

Merged
rich-iannone merged 4 commits into
masterfrom
gt-split-print-fix
May 26, 2023
Merged

Fix for gt_group objects printing through knitr/Quarto#1332
rich-iannone merged 4 commits into
masterfrom
gt-split-print-fix

Conversation

@rich-iannone

Copy link
Copy Markdown
Member

This PR provides a working implementation of printing for a gt_group object (created via gt_split()). This wasn't working in Quarto because the knit_print method was incomplete/untested (though the print method was fine). The fix here borrows from the print method; the extra <br /> was removed because it seems to provide too much space (and there should be a future option for the table separator anyway).

The issue of having a duplicate ID values (if a fixed value was given to the pre-split table) still persists. This will be solved in a later PR that should better handle table option values.

Fixes: #1286

@rich-iannone
rich-iannone merged commit 71d2a13 into master May 26, 2023
@rich-iannone
rich-iannone deleted the gt-split-print-fix branch May 26, 2023 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gt_split() cannot be rendered in documents

1 participant