From 6e2b08fd762aa926ca37422261ae8b9906f919c6 Mon Sep 17 00:00:00 2001 From: "Zhian N. Kamvar" Date: Wed, 4 May 2022 15:26:34 -0700 Subject: [PATCH] fix for oldrel --- tests/testthat/test-make_pandoc_alt.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test-make_pandoc_alt.R b/tests/testthat/test-make_pandoc_alt.R index 02474d3c..5ab0fdd2 100644 --- a/tests/testthat/test-make_pandoc_alt.R +++ b/tests/testthat/test-make_pandoc_alt.R @@ -1,13 +1,13 @@ test_that("make_pandoc_alt() converts alt text good", { - f <- textConnection(c("![has alt text](img1.png)", + f <- textConnection(paste(c("![has alt text](img1.png)", "", "![](needs-alt.png)", "", "![ ](decorative.png)", "", - "![has alt text](img2.png){: .class}", "")) + "![has alt text](img2.png){: .class}", ""), collapse = "\n")) body <- tinkr::to_xml(f)$body ns <- tinkr::md_ns() images <- xml2::xml_find_all(body, ".//md:image", ns = ns)