Skip to content

Commit

Permalink
address linebreaking issue re: simonpcouch/pal#9
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Nov 25, 2024
1 parent 85b2f21 commit f4a87c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/test_this.R
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ stream_inline <- function(test_helper, turn) {
stream <- test_helper$stream(turn)
coro::loop(for (chunk in stream) {
if (identical(chunk, "")) {next}
output_lines <- paste(output_lines, sub("\n$", "", chunk), sep = "")
output_lines <- paste(output_lines, chunk, sep = "")
n_lines <- nchar(gsub("[^\n]+", "", output_lines)) + 1
if (n_lines < 1) {
output_padded <-
Expand Down

0 comments on commit f4a87c1

Please sign in to comment.