Closed krlmlr closed 9 months ago
I think if there is a line break, it won’t remove it, so think the behavior works for both cases. Maybe we can also add an argument to tidyverse_style()
to enforce adding one.
I wonder if there are legitimate cases where a line break is not desired here.
Adding a newline for cases like this tends to create a lot of wasted whitespace.
I might choose to add a newline myself, but styler's defaults should be non-invasive -- unless there's a specific rule, don't do anything.
If there's a gap in the style guide, the fix should start from there:
I'm confused by the following behavior:
Created on 2023-06-15 with reprex v2.0.2
Should styler add a newline here? What's a precise description of the rules to be applied here?