Skip to content

Commit 480e562

Browse files
author
Abduqodiri Qurbonzoda
committed
Replace spaces in parameter values with non-wrapping spaces
To prevent kotlinpoet from ending line in the middle of string.
1 parent 85ddb06 commit 480e562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/main/src/kotlinx/benchmark/gradle/SuiteSourceGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class SuiteSourceGenerator(val title: String, val module: ModuleDescriptor, val
215215

216216
val defaultParametersString = defaultParameters.entries
217217
.joinToString(prefix = "mapOf(", postfix = ")") { (key, value) ->
218-
"\"${key}\" to ${value.joinToString(prefix = "listOf(", postfix = ")") { "\"\"\"${it.value}\"\"\"" }}"
218+
"\"${key}\" to ${value.joinToString(prefix = "listOf(", postfix = ")") { "\"\"\"${it.value.replace(' ', '·')}\"\"\"" }}"
219219
}
220220

221221
val timeUnitClass = ClassName.bestGuess(timeUnitFQN)

0 commit comments

Comments
 (0)