Force space between { and first enum entry (KT-18863)
#KT-18863 Fixed
This commit is contained in:
@@ -501,6 +501,7 @@ fun createSpacingBuilder(settings: CodeStyleSettings, builderUtil: KotlinSpacing
|
||||
beforeInside(RBRACE, BLOCK).spacing(1, 0, 1,
|
||||
commonCodeStyleSettings.KEEP_LINE_BREAKS,
|
||||
commonCodeStyleSettings.KEEP_BLANK_LINES_BEFORE_RBRACE)
|
||||
between(LBRACE, ENUM_ENTRY).spacing(1, 0, 0, true, commonCodeStyleSettings.KEEP_BLANK_LINES_IN_CODE)
|
||||
beforeInside(RBRACE, WHEN).lineBreakInCode()
|
||||
between(RPAR, BODY).spaces(1)
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
enum class E1 { F, S, T }
|
||||
enum class E1 {F, S, T }
|
||||
|
||||
enum class E2 {
|
||||
F, S, T
|
||||
|
||||
Reference in New Issue
Block a user