Fix #515
diff --git a/R/collapse_rows.R b/R/collapse_rows.R
index 298c26f..a32c56e 100644
--- a/R/collapse_rows.R
+++ b/R/collapse_rows.R
@@ -165,6 +165,7 @@
                                 custom_latex_hline, headers_to_remove, target,
                                 col_names, longtable_clean_cut) {
   table_info <- magic_mirror(kable_input)
+  if (table_info$nrow <= 2) return(kable_input)
   out <- solve_enc(kable_input)
   out <- gsub("\\\\addlinespace\n", "", out)