Skip to content

Commit

Permalink
don't need to escape a CR
Browse files Browse the repository at this point in the history
  • Loading branch information
coolbutuseless committed May 2, 2024
1 parent 095e054 commit b593d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/core-typst.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ escape_typst <- function(x) {
# x <- gsub("\\[" , "\\\\[", x, useBytes = TRUE)
# x <- gsub("\\]" , "\\\\]", x, useBytes = TRUE)
# x <- gsub("\\$" , "\\\\$", x, useBytes = TRUE)
x <- gsub("\n" , "\\\\\n", x, useBytes = TRUE)
# x <- gsub("\n" , "\\\\\n", x, useBytes = TRUE)
Encoding(x) <- 'UTF-8'
x
}

0 comments on commit b593d6d

Please sign in to comment.