Skip to content

Commit

Permalink
tabularray_inner at the end of styles
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Nov 17, 2024
1 parent 9191d51 commit 8d6f64f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions R/style_tabularray.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ setMethod(
sty$alignv[which(sty$alignv == "t")] <- "h"
sty$alignv[which(sty$alignv == "m")] <- "m"

for (spec in stats::na.omit(sty$tabularray_inner)) {
x@table_string <- tabularray_insert(x@table_string, content = spec, type = "inner")
}

for (spec in stats::na.omit(sty$tabularray_outer)) {
x@table_string <- tabularray_insert(x@table_string, content = spec, type = "inner")
}

set <- span <- rep("", nrow(rec))

# d-column are column-wise, so we treat them here
Expand Down Expand Up @@ -236,6 +228,15 @@ setMethod(
x@table_string <- tabularray_insert(x@table_string, content = s, type = "inner")
}

for (spec in unique(stats::na.omit(sty$tabularray_inner))) {
x@table_string <- tabularray_insert(x@table_string, content = spec, type = "inner")
}

for (spec in stats::na.omit(sty$tabularray_outer)) {
x@table_string <- tabularray_insert(x@table_string, content = spec, type = "inner")
}


return(x)
})

Expand Down

0 comments on commit 8d6f64f

Please sign in to comment.