We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63c9605 commit 705efd0Copy full SHA for 705efd0
src/main/kotlin/org/domaframework/doma/intellij/formatter/processor/SqlFormatPreProcessor.kt
@@ -320,13 +320,13 @@ class SqlFormatPreProcessor : PreFormatProcessor {
320
nextElementType: IElementType?,
321
): String {
322
val nextElementText =
323
- if (newNextElementStartOffset == element.endOffset) {
+ if (newNextElementStartOffset == element.textRange.endOffset) {
324
newNextElementText
325
} else {
326
element.nextSibling?.text ?: ""
327
}
328
val nextElementType =
329
330
nextElementType
331
332
element.nextSibling?.elementType
0 commit comments