Skip to content

Commit

Permalink
remove an extra space after ifelse since ifelse is a function
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui authored Apr 15, 2024
1 parent f999506 commit a198ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/conversion.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ convert <- function(text,

unicode_int <- as.integer(as.hexmode(unicode_latex$unicode))
char_latex <- ifelse(unicode_int <= 255 & unicode_int != 177, unicode_latex$chr,
sprintf("\\uc1\\u%d*", unicode_int - ifelse (unicode_int < 32768, 0, 65536))
sprintf("\\uc1\\u%d*", unicode_int - ifelse(unicode_int < 32768, 0, 65536))
)

names(char_latex) <- unicode_latex$latex
Expand Down

0 comments on commit a198ffb

Please sign in to comment.