From 89cc1936a749b687b61ede7684f95d128e384da5 Mon Sep 17 00:00:00 2001 From: Vincent Arel-Bundock Date: Thu, 24 Oct 2024 22:04:15 -0400 Subject: [PATCH] typst: bad index ordering --- R/style_typst.R | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/R/style_typst.R b/R/style_typst.R index 31a5f393..cbdbe545 100644 --- a/R/style_typst.R +++ b/R/style_typst.R @@ -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)