From fd4440c2e8c5b3d7adfdfee70d98f9a86fba7440 Mon Sep 17 00:00:00 2001 From: Lorenz Walthert Date: Sun, 24 Jan 2021 01:15:37 +0100 Subject: [PATCH] save another assignment --- R/transform-files.R | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/R/transform-files.R b/R/transform-files.R index c4713eb5b..b2e884bd1 100644 --- a/R/transform-files.R +++ b/R/transform-files.R @@ -228,13 +228,11 @@ parse_transform_serialize_r <- function(text, if (getRversion() < 3.4) text else pd_nested$text[!pd_nested$is_cached], transformers ) - blank_lines_to_next_expr <- find_blank_lines_to_next_block(pd_nested) - text_out <- pd_nested %>% split(pd_nested$block) %>% unname() %>% - map2(blank_lines_to_next_expr, + map2(find_blank_lines_to_next_block(pd_nested), parse_transform_serialize_r_block, transformers = transformers, base_indention = base_indention