commit | ae80df4d9890348b87088641caa49b40d2ba7fd3 | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Thu Apr 12 15:45:11 2018 -0400 |
committer | Hao Zhu <haozhu233@gmail.com> | Thu Apr 12 15:45:11 2018 -0400 |
tree | e064d9efa74e15b247f345cae8419497a1f53917 | |
parent | b8b0cae34a7610809b1f5fbd5c73267a68a17e7c [diff] [blame] |
add auto convert from makecell to newline in column_spec
diff --git a/R/kable_styling.R b/R/kable_styling.R index 3d488fc..b7677df 100644 --- a/R/kable_styling.R +++ b/R/kable_styling.R
@@ -332,7 +332,7 @@ return(x) } x <- sub(table_info$begin_tabular, - paste0("\\\\resizebox\\{\\\\linewidth\\}\\{\\!\\}\\{", + paste0("\\\\resizebox\\{\\\\linewidth\\}\\{\\!\\}\\{\n", table_info$begin_tabular), x) sub(table_info$end_tabular, paste0(table_info$end_tabular, "\\}"), x)