commit | 78e4386d49f38744eaeccd3c7a573c7db64f57f6 | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Mon Jan 07 17:37:30 2019 -0500 |
committer | Hao Zhu <haozhu233@gmail.com> | Mon Jan 07 17:37:30 2019 -0500 |
tree | 8971c07419f4e4e53da872c3684be0c7d0a20fc2 | |
parent | da886994b59985bf8ab77c1c5fa7845bb0c21a53 [diff] |
Fix #235
diff --git a/R/util.R b/R/util.R index fb83abe..26d593d 100644 --- a/R/util.R +++ b/R/util.R
@@ -45,11 +45,7 @@ } latex_row_cells <- function(x) { - out <- strsplit(x, " \\& ") - if (substr(x, nchar(x) - 2, nchar(x)) == " & ") { - out <- c(out, "") - } - return(out) + stringr::str_split(x, " \\& ") } regex_escape <- function(x, double_backslash = FALSE) {