commit | 685eaab206c7c44fc476b35be42a1411d5391bf6 | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Mon Jan 07 12:18:26 2019 -0500 |
committer | Hao Zhu <haozhu233@gmail.com> | Mon Jan 07 12:18:26 2019 -0500 |
tree | 06bc2d3174ac204ba0a051d0447854d2b17e0c4a | |
parent | 905b31af8b3d502efe24e6d9658adecb9521e39f [diff] |
Fixed a critical bug
diff --git a/R/kable_styling.R b/R/kable_styling.R index b693b3b..6b60780 100644 --- a/R/kable_styling.R +++ b/R/kable_styling.R
@@ -336,7 +336,7 @@ styling_latex_striped <- function(x, table_info, color, stripe_index) { if (is.null(stripe_index)) { - striped_index <- seq(1, table_info$nrow, 2) + striped_index <- seq(1, table_info$nrow - table_info$position_offset, 2) } row_spec(x, striped_index, background = color) }