Skip to content

Commit

Permalink
Merge pull request #43 from jhorzek/jhorzek-patch-1
Browse files Browse the repository at this point in the history
Fix incorrect background setting for rhs of header
  • Loading branch information
jhorzek authored Jan 11, 2025
2 parents 584d3b4 + 6c1d0cb commit a89230a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/as_excel.R
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ fill_background <- function(tbl,
# Header RHS
openxlsx::addStyle(wb = workbook,
sheet = sheet,
style = styles$bg_header_lhs,
style = styles$bg_header_rhs,
rows = locations$row$start_row_header:locations$row$end_row_header,
cols = locations$col$start_col_header_rhs:locations$col$end_col_header_rhs,
gridExpand = TRUE,
Expand All @@ -202,7 +202,7 @@ fill_background <- function(tbl,
if(!is.null(tbl$footnote))
openxlsx::addStyle(wb = workbook,
sheet = sheet,
style = styles$bg_data,
style = styles$bg_footnote,
rows = locations$row$start_row_footnote:locations$row$end_row_footnote,
cols = locations$col$start_col_footnote:locations$col$end_col_footnote,
gridExpand = TRUE,
Expand Down

0 comments on commit a89230a

Please sign in to comment.