Skip to content

Commit

Permalink
fix; reverse to previous and old state as it still break glossr
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgohel committed Mar 28, 2024
1 parent 838be71 commit 2784247
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions R/printers.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ htmltools_value <- function(x, ft.align = NULL, ft.shadow = NULL,
#' )
#' }
#' }
flextable_to_rmd <- function(x, print = TRUE, ...) {
flextable_to_rmd <- function(x, ...) {
is_bookdown <- is_in_bookdown()
is_quarto <- is_in_quarto()

Expand All @@ -104,11 +104,9 @@ flextable_to_rmd <- function(x, print = TRUE, ...) {
useBytes = TRUE)

z <- knit_child(input = tmp_file, envir = environment(), quiet = TRUE)
if (print) {
cat(z, sep = '\n')
}
cat(z, sep = '\n')

invisible(paste0(z, collapse = "\n"))
invisible("")
}

#' @export
Expand Down
2 changes: 1 addition & 1 deletion man/flextable_to_rmd.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2784247

Please sign in to comment.