Skip to content

Conversation

@rich-iannone
Copy link
Member

From #812, it was reported that using tab_style() with cells_summary() as a location and using row_group_order() (to reorder row groups) results in missing the style (or unformatted).

The issue was the internal reorder_styles() function. It's purpose is to update rownum values in the internal styles table to the finalized row order. However, rownum values for summary and grand rows should never be altered since rownum for those locations means the order of summary rows for each grouping (always starting from 1).

Fixes: #812

@rich-iannone rich-iannone merged commit bc28dde into master Jul 9, 2021
@rich-iannone rich-iannone deleted the row-group-order-style-fix branch July 9, 2021 20:17
rich-iannone added a commit that referenced this pull request Jan 24, 2022
* master:
  Fixes to footer (footnotes and source notes) across all output formats (#864)
  Row group labels as a column in stub (#855)
  Use reusable GHA workflows (#847)
  Increment version number
  v0.3.1 Release Candidate (#821)
  Fix for styles applied to summary cells when row groups are reordered (#814)
  Update image generation functions (#803)
  `cell_text()` fix (#805)
  Add whitespace options for text (#797)
rich-iannone added a commit that referenced this pull request Feb 2, 2022
* master: (23 commits)
  Improve color handling and add tests (#870)
  Change HTML percent sign to literal `%` (#871)
  Add ability to set global locale in `gt()` (#866)
  Bug fixes and enhancements to date/time formatters (#801)
  Update gt_workflow_diagram.svg
  Update gt_parts_of_a_table.svg
  Update README.md
  Add dedicated ISSUE TEMPLATEs
  Update README.md
  Delete README.Rmd
  Update intro-creating-gt-tables.Rmd
  Update LICENSE
  Make corrections to docs (`columns`/`rows`)
  Update _pkgdown.yml
  Fixes to footer (footnotes and source notes) across all output formats (#864)
  Row group labels as a column in stub (#855)
  Use reusable GHA workflows (#847)
  Increment version number
  v0.3.1 Release Candidate (#821)
  Fix for styles applied to summary cells when row groups are reordered (#814)
  ...
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.

tab_style() fails to target all cell_summary rows with row_group_order()

3 participants