Trim trailing spaces in generated docs of builtins

This commit is contained in:
Ilya Gorbunov
2022-09-30 14:16:30 +02:00
committed by Space Team
parent 9ac9bef20f
commit 34de2d9155
7 changed files with 126 additions and 126 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@@ -74,7 +74,7 @@ fun PrintWriter.printDoc(documentation: String, indent: String) {
this.println("$indent/** $documentation */")
} else {
this.println("$indent/**")
docLines.forEach { this.println("$indent * $it") }
docLines.forEach { this.println("$indent * $it".trimEnd()) }
this.println("$indent */")
}
}