Skip to content

Addresses issue where styling is not applied to summary rows#2123

Open
thebioengineer wants to merge 2 commits intorstudio:masterfrom
thebioengineer:summary_row_handling_latex
Open

Addresses issue where styling is not applied to summary rows#2123
thebioengineer wants to merge 2 commits intorstudio:masterfrom
thebioengineer:summary_row_handling_latex

Conversation

@thebioengineer
Copy link
Copy Markdown
Collaborator

Summary

Thank you for contributing to gt! To make this process easier for everyone, please explain the context and purpose of your contribution. Also, list the changes made to the existing code or documentation.

Resolves issue 2117, where when attempting to apply styling to a summary row led to an error because a grepl failed.

This highlighted a different issue where the "row_pos" was actually a double that was not the row position, but values like .999999999997, which is not an index, and when as.integteger is called on them, it becomes 0 (1.999999 becomes 1), etc.

This update forces the number to become an integer, and adds a protection in .apply_style_alignment_shortstack to not fail if the entry is an empty character

Related GitHub Issues and PRs

Checklist

…ed to apply_cell_styles, and update .apply_style_alignment_shortstack to not fail if the entry is an empty character
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.

1 participant