Skip to content

Commit

Permalink
typst: bad index ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Oct 25, 2024
1 parent 9457d4d commit 89cc193
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/style_typst.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ style_apply_typst <- function(x) {

# Unique style arrays
uni <- split(rec, rec$css)
browser()

pairs <- sapply(uni, function(x) paste(sprintf("(%s, %s),", x$i, x$j), collapse = " "))
pairs <- sapply(uni, function(x) paste(sprintf("(%s, %s),", x$j, x$i), collapse = " "))
styles <- sapply(uni, function(x) x$css[1])
styles <- sprintf("(pairs: (%s), %s),", pairs, styles)

Expand Down

0 comments on commit 89cc193

Please sign in to comment.