commit | 2223eceafc04c819e3251b54b17f8b3d267be0ea | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Mon Mar 26 11:45:31 2018 -0400 |
committer | Hao Zhu <haozhu233@gmail.com> | Mon Mar 26 11:45:31 2018 -0400 |
tree | 7961be5cce39017420eeea89e0475884dfcc900e | |
parent | 68b5bbf544acd4de908a60477db165f8875b9df8 [diff] [blame] |
Fixed #116
diff --git a/R/footnote.R b/R/footnote.R index 4d1894e..9225ebf 100644 --- a/R/footnote.R +++ b/R/footnote.R
@@ -215,6 +215,9 @@ "\n\\\\small\n", footnote_text, "\n\\\\end{tablenotes}\n\\\\end{threeparttable}"), out) + } else if (table_info$booktabs) { + out <- sub("\\\\bottomrule", + paste0("\\\\bottomrule\n", footnote_text), out) } else { out <- sub(table_info$end_tabular, paste0(footnote_text, "\n\\\\end{", table_info$tabular, "}"),