Skip to content

Commit

Permalink
Use div instead of span as per rstudio#1842 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Aug 22, 2024
1 parent a52eb41 commit 6a91ef6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@

* `vec_fmt_markdown()` works correctly inside Quarto again (@olivroy, #1840).

* Fixed a bug where spanners didn't render correctly in Quarto (#1839).

# gt 0.11.0

## New features
Expand Down
4 changes: 2 additions & 2 deletions R/utils_render_html.R
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ create_columns_component_h <- function(data) {
style = spanner_style,
scope = ifelse(colspans[i] > 1, "colgroup", "col"),
id = spanner_ids[level_1_index, ][i],
htmltools::tags$span(
htmltools::tags$div(
class = "gt_column_spanner",
htmltools::HTML(spanners[level_1_index, ][i])
)
Expand Down Expand Up @@ -962,7 +962,7 @@ create_columns_component_h <- function(data) {
scope = ifelse(colspans[j] > 1, "colgroup", "col"),
id = spanner_ids_row[j],
if (spanner_ids_row[j] != "") {
htmltools::tags$span(
htmltools::tags$div(
class = "gt_column_spanner",
htmltools::HTML(spanners_row[j])
)
Expand Down

0 comments on commit 6a91ef6

Please sign in to comment.