``` r styler::style_text("list(function(){})", strict = FALSE, scope = "line_breaks") #> list(function() { #> }) ``` We don't need to add a new line if the block is truly empty. This happens occasionally with R6 classes. ``` r styler::style_text("{}", strict = FALSE, scope = "line_breaks") #> { #> } ``` Blocks also occur naked sometimes.
Activity