From d4a9ea1f6c7ab9d25fd60695cce0965c7b5269a4 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sat, 14 Oct 2023 05:36:49 +0200 Subject: [PATCH] fix: Indent option description correctly --- .../youtube/layout/branding/CustomBrandingPatch.kt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/CustomBrandingPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/CustomBrandingPatch.kt index 68926b6a..1779523a 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/CustomBrandingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/CustomBrandingPatch.kt @@ -8,7 +8,6 @@ import app.revanced.patcher.patch.options.types.StringPatchOption.Companion.stri import app.revanced.util.resources.ResourceUtils import app.revanced.util.resources.ResourceUtils.copyResources import java.io.File -import java.nio.file.Files @Patch( name = "Custom branding", @@ -47,15 +46,18 @@ object CustomBrandingPatch : ResourcePatch() { key = "iconPath", default = null, title = "App icon path", - description = """ + description = """ The path to a folder containing the following folders: - + ${mipmapDirectories.joinToString("\n") { "- $it" }} - + Each of these folders has to have the following files: - + ${iconResourceFileNames.joinToString("\n") { "- $it" }} - """.trimIndent() + """ + .split("\n") + .joinToString("\n") { it.trimIndent() } // Remove the leading whitespace from each line. + .trimIndent(), // Remove the leading newline. ) override fun execute(context: ResourceContext) {