commit | bdea945842ab4fde50072e490eb8eeb73a9eda4d | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Tue Oct 23 13:07:43 2018 -0400 |
committer | Hao Zhu <haozhu233@gmail.com> | Tue Oct 23 13:07:43 2018 -0400 |
tree | 4304c74111bc2325d99d7efd435b7c2bf6208c3a | |
parent | 3e0e2b108e8ee1f91e3d105f576288a6dc38c21f [diff] |
Fixed #280
diff --git a/R/add_header_above.R b/R/add_header_above.R index 70e0783..1ff5f1e 100644 --- a/R/add_header_above.R +++ b/R/add_header_above.R
@@ -267,9 +267,7 @@ font_size <- ez_rep(font_size, n) angle <- ez_rep(angle, n) if (!booktabs) { - align <- paste0("|", align, "|") - align[1] <- paste0(align[1], "|") - align[nrow(header_df)] <- paste0("|", align[nrow(header_df)]) + align[1:(nrow(header_df) - 1)] <- paste0(align, "|") } header <- header_df$header colspan <- header_df$colspan