From 10888b0e83843cebcb6f6d007d371b9fdb47ada3 Mon Sep 17 00:00:00 2001 From: Abe Pazos Date: Sun, 23 Nov 2025 13:27:20 +0000 Subject: [PATCH] Update CollectScreenShots.kt Make top comment finding less strict. Currently some comments start with /* instead of /**, which leads to import and package lines being included in README.md files. --- .../kotlin/org/openrndr/extra/convention/CollectScreenShots.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-logic/orx-convention/src/main/kotlin/org/openrndr/extra/convention/CollectScreenShots.kt b/build-logic/orx-convention/src/main/kotlin/org/openrndr/extra/convention/CollectScreenShots.kt index 4b82b4a8..d23059fd 100644 --- a/build-logic/orx-convention/src/main/kotlin/org/openrndr/extra/convention/CollectScreenShots.kt +++ b/build-logic/orx-convention/src/main/kotlin/org/openrndr/extra/convention/CollectScreenShots.kt @@ -132,7 +132,7 @@ abstract class CollectScreenshotsTask @Inject constructor() : DefaultTask() { val codeLines = ktFile.readLines() val main = codeLines.indexOfFirst { it.startsWith("fun main") } val head = codeLines.take(main) - val start = head.indexOfLast { it.startsWith("/**") } + val start = head.indexOfLast { it.startsWith("/*") } val end = head.indexOfLast { it.endsWith("*/") } if ((start < end) && (end < main)) {