diff options
author | Marcin Aman <marcin.aman@gmail.com> | 2021-07-22 14:27:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-22 14:27:55 +0200 |
commit | b6dce5370b0c90932127499a903453b199e69c5a (patch) | |
tree | 3ab1839f794b574f7a97edbc80eb52b64b4cef67 /plugins/base/src | |
parent | 4f701027ac0a5de6c52fb6285edf79752c84ad0e (diff) | |
download | dokka-b6dce5370b0c90932127499a903453b199e69c5a.tar.gz dokka-b6dce5370b0c90932127499a903453b199e69c5a.tar.bz2 dokka-b6dce5370b0c90932127499a903453b199e69c5a.zip |
Bump kotlin 1.5.21 (#2031)
* bump kotlin to 1.5.21
* Bump binary compatibility plugin
* update stdlib submodule
* Bump IJ to 202.8194.7
Diffstat (limited to 'plugins/base/src')
-rw-r--r-- | plugins/base/src/main/kotlin/transformers/pages/samples/KotlinWebsiteSamplesTransformer.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/pages/samples/KotlinWebsiteSamplesTransformer.kt b/plugins/base/src/main/kotlin/transformers/pages/samples/KotlinWebsiteSamplesTransformer.kt index c099644f..5babc289 100644 --- a/plugins/base/src/main/kotlin/transformers/pages/samples/KotlinWebsiteSamplesTransformer.kt +++ b/plugins/base/src/main/kotlin/transformers/pages/samples/KotlinWebsiteSamplesTransformer.kt @@ -178,7 +178,7 @@ class KotlinWebsiteSamplesTransformer(context: DokkaContext): SamplesTransformer override fun processBody(psiElement: PsiElement): String { val text = processSampleBody(psiElement).trim { it == '\n' || it == '\r' }.trimEnd() val lines = text.split("\n") - val indent = lines.filter(String::isNotBlank).map { it.takeWhile(Char::isWhitespace).count() }.min() ?: 0 + val indent = lines.filter(String::isNotBlank).map { it.takeWhile(Char::isWhitespace).count() }.minOrNull() ?: 0 return lines.joinToString("\n") { it.drop(indent) } } |