File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -308,10 +308,11 @@ a <- function() # comments should remain EOL {
308
308
The easiest way of taking care of that is not applying the rule if there is a
309
309
comment before the token of interest, which can be checked for within your
310
310
transformer function. The transformer function from the tidyverse style that
311
- removes line breaks before the curly opening bracket looks as follows:
311
+ removes line breaks before the round closing bracket that comes after a curly
312
+ brace looks as follows:
312
313
313
314
``` {r}
314
- styler:::remove_line_break_before_curly_opening
315
+ styler:::remove_line_break_before_round_closing_after_curly
315
316
```
316
317
317
318
With our example function ` set_line_break_before_curly_opening() ` we don't need
You can’t perform that action at this time.
0 commit comments