commit | ed845865ec8a2436a0cc3178d9f369545afe68b1 | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Thu Aug 03 09:24:08 2017 -0400 |
committer | Hao Zhu <haozhu233@gmail.com> | Thu Aug 03 09:24:08 2017 -0400 |
tree | 0bf6b9e8a7b93ccfb43dc2f6f0be09c5cd77271a | |
parent | f01139c02b2a9e7dd20ebd5ea8290c237d3e05b3 [diff] [blame] |
#34
diff --git a/R/kable_styling.R b/R/kable_styling.R index b034d36..bb9cd4c 100644 --- a/R/kable_styling.R +++ b/R/kable_styling.R
@@ -292,12 +292,14 @@ continue_line <- paste0("\\caption[]{", repeat_header_text, "}\\\\") } + x <- x[x != "\\bottomrule"] x <- c( x[1:header_rows_end], "\\endfirsthead", continue_line, x[header_rows_start:header_rows_end], "\\endhead", + "\\bottomrule\\endlastfoot", x[(header_rows_end + 1):length(x)] ) x <- paste0(x, collapse = "\n")