Multiple templates with concatenation generator should add spaces after commas (KT-27954)

This commit is contained in:
technoir
2018-11-07 15:52:46 +03:00
committed by asedunov
parent 798b4a8164
commit 6bb5e028a5
7 changed files with 11 additions and 11 deletions
@@ -94,7 +94,7 @@ class KotlinGenerateToStringAction : KotlinGenerateMemberActionBase<KotlinGenera
val ref = (DescriptorToSourceUtilsIde.getAnyDeclaration(info.project, it) as PsiNameIdentifierOwner).nameIdentifier!!.text val ref = (DescriptorToSourceUtilsIde.getAnyDeclaration(info.project, it) as PsiNameIdentifierOwner).nameIdentifier!!.text
append("\"$ref=${renderVariableValue(it, ref)}") append("\"$ref=${renderVariableValue(it, ref)}")
if (varIterator.hasNext()) { if (varIterator.hasNext()) {
append(',') append(", ")
} }
append("\" +\n") append("\" +\n")
} }