Skip to content

Commit 2f7af06

Browse files
committed
Update the condition to ensure a space is inserted before the closing parenthesis when the block is an SqlInsertValueGroupBlock block class.
1 parent 154860f commit 2f7af06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/kotlin/org/domaframework/doma/intellij/formatter/block/SqlRightPatternBlock.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import org.domaframework.doma.intellij.formatter.block.group.subgroup.SqlDataTyp
3434
import org.domaframework.doma.intellij.formatter.block.group.subgroup.SqlFunctionParamBlock
3535
import org.domaframework.doma.intellij.formatter.block.group.subgroup.SqlSubGroupBlock
3636
import org.domaframework.doma.intellij.formatter.block.group.subgroup.SqlSubQueryGroupBlock
37+
import org.domaframework.doma.intellij.formatter.block.group.subgroup.SqlValuesParamGroupBlock
3738
import org.domaframework.doma.intellij.formatter.util.IndentType
3839
import org.domaframework.doma.intellij.formatter.util.SqlBlockFormattingContext
3940

@@ -136,7 +137,7 @@ open class SqlRightPatternBlock(
136137
}
137138

138139
// Default case
139-
preSpaceRight = false
140+
preSpaceRight = parentBlock is SqlValuesParamGroupBlock
140141
}
141142

142143
override val indent =

0 commit comments

Comments
 (0)