New J2K: Fix extra spaces in StructuralPsiCompare
This commit is contained in:
committed by
Ilya Kirillov
parent
2c8483aef4
commit
b7d6a905f3
@@ -20,7 +20,7 @@ internal fun KtFile.dumpStructureText(): String {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (element is PsiWhiteSpace) {
|
if (element is PsiWhiteSpace) {
|
||||||
if (sb.lastOrNull() != ' ') {
|
if (sb.lastOrNull() !in listOf(' ', '{', '}', '(', ')')) {
|
||||||
sb.append(" ")
|
sb.append(" ")
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
@@ -34,5 +34,5 @@ internal fun KtFile.dumpStructureText(): String {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
return sb.toString()
|
return sb.toString().trim()
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user