Skip to content

Commit 612c9cb

Browse files
committed
merge multiple screenshots
closes #41
1 parent e08966c commit 612c9cb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

R/shiny2screenshot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ format.rd_section_crowInsertSnaps <- function(x, ...) {
212212
paste0(
213213
"\\section{Screenshots from Tests}{\n",
214214
"\\if{html}",
215-
x$value,
215+
paste(x$value, collapse = "\n"),
216216
"\\if{latex}{Screenshots cannot be shown in this output format.}",
217217
"}\n"
218218
)

tests/testthat/_snaps/shiny2screenshot.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,8 @@
7373
topic$get_section("crowInsertSnaps")
7474
Output
7575
\section{Screenshots from Tests}{
76-
\if{html}{\figure{crow_screenshots/helpers/bins.gif}{options: width='100\%' alt=Screenshot from App}}\if{latex}{Screenshots cannot be shown in this output format.}}
77-
\section{Screenshots from Tests}{
78-
\if{html}{\figure{crow_screenshots/helpers/bins.gif}{options: width='100\%' alt=Screenshot from App}}\if{latex}{Screenshots cannot be shown in this output format.}}
76+
\if{html}{\figure{crow_screenshots/helpers/bins.gif}{options: width='100\%' alt=Screenshot from App}}
77+
{\figure{crow_screenshots/helpers/bins.gif}{options: width='100\%' alt=Screenshot from App}}\if{latex}{Screenshots cannot be shown in this output format.}}
7978
8079

8180
# snaps2fig and friends work: writes out markdown syntax

0 commit comments

Comments
 (0)