- Fix a bug in collapse_row on removing addlinespace
- remove addlinespace from group_rows
- add monospace to column_spec
diff --git a/R/collapse_rows.R b/R/collapse_rows.R
index 72ee31c..d260362 100644
--- a/R/collapse_rows.R
+++ b/R/collapse_rows.R
@@ -127,7 +127,7 @@
}
out <- sub(contents[i + 1], new_contents[i], out)
}
- out <- sub("\\\\addlinespace\n", "", out)
+ out <- gsub("\\\\addlinespace\n", "", out)
out <- structure(out, format = "latex", class = "knitr_kable")
table_info$collapse_rows <- TRUE