Skip to content

Conversation

@rich-iannone
Copy link
Member

@rich-iannone rich-iannone commented Jan 18, 2022

This PR aims to fix various issues with the table footer. For HTML, the footnotes.sep option (in tab_options()) is not honored. For LaTeX, more than one source note is not possible (source notes are truncated to one). For RTF, multiple source notes are rendered but they aren't separated from each other.

Fixes: #593
Fixes: #833

@rich-iannone rich-iannone marked this pull request as ready for review January 20, 2022 20:58
This modifies the handling of footnotes, delaying text processing until render time. Snapshot tests added, exercising all combinations of footer options and testing markdown-to-output transformations and preservation of raw 'sep' value across all output formats.
@rich-iannone rich-iannone requested a review from jcheng5 January 24, 2022 20:29
@jcheng5 jcheng5 self-requested a review January 24, 2022 20:51
@rich-iannone rich-iannone merged commit 81694d4 into master Jan 24, 2022
@rich-iannone rich-iannone deleted the source-notes-fixes branch January 24, 2022 21:41
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 1, 2022
* master:
  Add ability to set global locale in `gt()` (#866)
  Bug fixes and enhancements to date/time formatters (#801)
  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)
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.

Footnotes are rendered in separate lines/paragraphs with footnotes.sep = " " Cannot use multiple tab_source_note in a LaTeX table (works in HTML)

3 participants