fix: Indent option description correctly

This commit is contained in:
oSumAtrIX 2023-10-14 05:36:49 +02:00
parent 70f93bfadc
commit d4a9ea1f6c
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -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) {