Force space between { and first enum entry (KT-18863)

#KT-18863 Fixed
This commit is contained in:
Nikolay Krasko
2017-07-06 16:57:58 +03:00
parent 7f8d6b3008
commit 68e0727894
2 changed files with 2 additions and 1 deletions
@@ -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
View File
@@ -1,4 +1,4 @@
enum class E1 { F, S, T }
enum class E1 {F, S, T }
enum class E2 {
F, S, T