Fix item 3 in #480
diff --git a/R/row_spec.R b/R/row_spec.R
index ff95c0e..cc8978e 100644
--- a/R/row_spec.R
+++ b/R/row_spec.R
@@ -198,7 +198,9 @@
underline, strikeout,
color, background, align, font_size, angle,
hline_after, extra_latex_after)
- temp_sub <- ifelse(i == 1 & table_info$tabular == "longtable", gsub, sub)
+ temp_sub <- ifelse(i == 1 & (table_info$tabular == "longtable" |
+ !is.null(table_info$repeat_header_latex)),
+ gsub, sub)
if (length(new_row) == 1) {
out <- temp_sub(target_row, new_row, out, perl = T)
table_info$contents[i] <- new_row