Skip to content

Commit

Permalink
fixing quote issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikeya committed Sep 21, 2023
1 parent 4653580 commit 8f40958
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/Renderer.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ Renderer <- R6::R6Class( # nolint: object_name_linter.
params <- lapply(params, function(l) if (is.character(l)) shQuote(l) else l)
block_content <- block$get_content()
if (identical(private$report_type, "powerpoint_presentation")) {
block_content_lst <- split_text_block(block_content, 30)
block_content <- split_text_block(block_content, 30)
paste(
sprintf(
"---\n\n```{r, echo=FALSE}\ncode_block(\n%s)\n```\n",
sQuote(block_content_lst, q = FALSE)
shQuote(block_content, type = "cmd")
),
collapse = "\n\n"
)
Expand Down

0 comments on commit 8f40958

Please sign in to comment.