Skip to content

Commit

Permalink
Call springf() only once
Browse files Browse the repository at this point in the history
  • Loading branch information
nanxstats committed May 28, 2024
1 parent 42b7a15 commit a9eb789
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ update_unicode_latex <- function() {
)), , drop = FALSE]

rows <- paste(
sprintf('"%s"', tbl$unicode),
sprintf('"%s"', gsub("\\", "\\\\", tbl$latex, fixed = TRUE)),
sprintf("%d", tbl$int),
sprintf(
'"%s", "%s", %d',
tbl$unicode,
gsub("\\", "\\\\", tbl$latex, fixed = TRUE),
tbl$int
),
sep = ", "
)

Expand Down

0 comments on commit a9eb789

Please sign in to comment.