Repository navigation
Brace symmetry and spaces around ^ - #46
Conversation
|
I feel like there's probably a better way to formalise this rule, but I can't see how to express it clearly. It's more like matching (symmetrically) the pattern of the opening braces. |
|
I have also edited the part where operator spacing is discussed, following https://github.com/tidyverse/dplyr/pull/3261/files#r158605017. CC @lionel- @lorenzwalthert @batpigandme. |
|
@krlmlr do we need to adapt styler defaults for math token spacing? Also, maybe we can explicitly add / and * in the examples above just to be explicit. Should there be a space around them or not? |
|
@lorenzwalthert: There is an example for |
|
Ok, I meant in the floating text enumeration. But probably you are right and it's sufficient. |
Reference: r-lib/styler#254 (comment)
CC @lorenzwalthert.
@hadley: Some function calls with blocks aren't formatted correctly in styler, it would help if we could formalize the rules here. Do we need more examples?