bug fix
diff --git a/R/footnote.R b/R/footnote.R
index 7fdec04..a05360f 100644
--- a/R/footnote.R
+++ b/R/footnote.R
@@ -194,7 +194,7 @@
   table_info <- magic_mirror(kable_input)
   out <- enc2utf8(as.character(kable_input))
 
-  if (table_info$tabular == "longtable") {
+  if (table_info$tabular == "longtable" & threeparttable == TRUE) {
     threeparttable <- FALSE
     warning("threeparttable does not support longtable.")
   }