From 5cd2dc30f1c0aa80ab05546d8a114c384a5dcb44 Mon Sep 17 00:00:00 2001 From: atusy <30277794+atusy@users.noreply.github.com> Date: Thu, 11 Apr 2024 09:40:27 +0900 Subject: [PATCH] fix(as_paragraph_md): flextable's seq_index is renamed to .chunk_index --- R/as-paragraph-md.R | 2 +- R/footnote.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/as-paragraph-md.R b/R/as-paragraph-md.R index 951d848..f39e144 100644 --- a/R/as-paragraph-md.R +++ b/R/as-paragraph-md.R @@ -61,7 +61,7 @@ construct_chunk <- function(x, auto_color_link = "blue") { .data$color ), img_data = x$Image %||% list(NULL), - seq_index = dplyr::row_number() + .chunk_index = dplyr::row_number() ) } diff --git a/R/footnote.R b/R/footnote.R index 5ad3169..ff59509 100644 --- a/R/footnote.R +++ b/R/footnote.R @@ -133,7 +133,7 @@ collapse_footnotes <- function(value, sep) { value %>% lapply(dplyr::add_row, data.frame(txt = sep %||% "")) %>% dplyr::bind_rows() %>% - dplyr::mutate(seq_index = dplyr::row_number()) %>% + dplyr::mutate(.chunk_index = dplyr::row_number()) %>% list() }