Skip to content

Commit 5fd0935

Browse files
committed
simplify multiple spaces
1 parent e2db3aa commit 5fd0935

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/testthat/test_extract_text.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ test_that("Text can be extracted from the whole document", {
66
txt <- extract_text(sf, encoding = "UTF-8")
77
txt <- gsub("[\r\n]", " ", txt)
88
txt <- gsub("\\s+$", "", txt)
9+
txt <- gsub("\\s+", " ", txt)
910
expect_identical(txt, "42 is the number from which the meaning of life, the universe, and everything can be derived. 42 is the number from which the meaning of life, the universe, and everything can be derived.")
1011
})
1112

0 commit comments

Comments
 (0)