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 a2014dc commit 35cd8a9Copy full SHA for 35cd8a9
R/rules-line-breaks.R
@@ -451,11 +451,10 @@ remove_empty_lines_after_opening_and_before_closing_braces <- function(pd) {
451
452
reduce_extra_blank_lines_between_scopes <- function(pd, allowed_blank_lines = 2L) {
453
# Calculate the maximum allowed lag_newlines
454
- max_lag_newlines <- allowed_blank_lines + 1L # +1 accounts for the line with the previous token
+ max_lag_newlines <- allowed_blank_lines + 1L # +1 accounts for the line with the previous token
455
456
# cap lag_newlines at max_lag_newlines
457
pd$lag_newlines <- pmin(pd$lag_newlines, max_lag_newlines)
458
459
pd
460
}
461
-
0 commit comments