commit | 09d0126e0df36dcb0d6415b7fc3649e499eb55ba | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Mon Jan 07 22:06:22 2019 -0500 |
committer | Hao Zhu <haozhu233@gmail.com> | Mon Jan 07 22:06:22 2019 -0500 |
tree | cc8c03564cf6dec39195edb8786e4d5f017145bd | |
parent | 9b0515925261f26aca38d11f1e2eba3528fdbc43 [diff] |
Fix #316
diff --git a/R/add_indent.R b/R/add_indent.R index 35cc196..25448b5 100644 --- a/R/add_indent.R +++ b/R/add_indent.R
@@ -48,8 +48,8 @@ for (i in positions + table_info$position_offset) { rowtext <- table_info$contents[i] - out <- sub(paste0(rowtext, "\\\\\\\\\n"), - paste0(latex_indent_unit(rowtext), "\\\\\\\\\n"), + out <- sub(paste0(rowtext, "\\\\\\\\"), + paste0(latex_indent_unit(rowtext), "\\\\\\\\"), out, perl = TRUE) table_info$contents[i] <- latex_indent_unit(rowtext) }