commit | 9328212edb42d8bec7ee229ec2c4a7e5cf2fc7bd | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Tue May 25 15:50:13 2021 -0400 |
committer | GitHub <noreply@github.com> | Tue May 25 15:50:13 2021 -0400 |
tree | c8540df660905e17b5bc26c3e3ca2f5538bac2f6 | |
parent | f36f9602877489207dca68646078268063d8f15d [diff] |
make a small change
diff --git a/R/add_indent.R b/R/add_indent.R index 098989c..19c9169 100644 --- a/R/add_indent.R +++ b/R/add_indent.R
@@ -75,7 +75,9 @@ } } new_rowtext <- paste(unlist(new_rowtext), collapse = " & ") - out <- sub(rowtext, new_rowtext, out, perl = TRUE) + out <- sub(paste0(rowtext, "(\\\\\\\\\\*?(\\[.*\\])?\n)"), + paste0(new_rowtext, "\\1"), + out, perl = TRUE) table_info$contents[i] <- new_rowtext } out <- structure(out, format = "latex", class = "knitr_kable")