We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b9a4a0 commit ff785eaCopy full SHA for ff785ea
R/rules-line-breaks.R
@@ -236,13 +236,13 @@ remove_line_break_before_round_closing_after_curly <- function(pd) {
236
237
remove_line_breaks_in_fun_dec <- function(pd) {
238
if (is_function_declaration(pd)) {
239
- is_double_indention <- is_single_indent_function_declaration(pd)
+ is_single_indention <- is_single_indent_function_declaration(pd)
240
round_after <- (
241
pd$token == "')'" | pd$token_before == "'('"
242
) &
243
pd$token_before != "COMMENT"
244
pd$lag_newlines[pd$lag_newlines > 1L] <- 1L
245
- if (is_double_indention) {
+ if (is_single_indention) {
246
pd$lag_newlines[lag(pd$token == "'('")] <- 1L
247
pd$lag_newlines[round_after] <- 1L
248
} else {
0 commit comments