Skip to content

Commit

Permalink
Set RTF encoding to UTF-8
Browse files Browse the repository at this point in the history
The need for this was exposed by the use of a proper ellipsis for `...` in tibble's format method.

As in:

#> # … with 140 more rows
  • Loading branch information
jennybc committed Sep 13, 2018
1 parent d37ac25 commit de45a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/reprex.R
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ reprex_highlight <- function(rout_file, reprex_file, arg_string = NULL) {
arg_string <- arg_string %||% highlight_args()
cmd <- paste0(
"highlight ", rout_file,
" --out-format=rtf --no-trailing-nl",
" --out-format=rtf --no-trailing-nl --encoding=UTF-8",
arg_string,
" > ", reprex_file
)
Expand Down

0 comments on commit de45a37

Please sign in to comment.