fix: Indent option description correctly
This commit is contained in:
parent
70f93bfadc
commit
d4a9ea1f6c
|
@ -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
|
||||||
import app.revanced.util.resources.ResourceUtils.copyResources
|
import app.revanced.util.resources.ResourceUtils.copyResources
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.nio.file.Files
|
|
||||||
|
|
||||||
@Patch(
|
@Patch(
|
||||||
name = "Custom branding",
|
name = "Custom branding",
|
||||||
|
@ -47,15 +46,18 @@ object CustomBrandingPatch : ResourcePatch() {
|
||||||
key = "iconPath",
|
key = "iconPath",
|
||||||
default = null,
|
default = null,
|
||||||
title = "App icon path",
|
title = "App icon path",
|
||||||
description = """
|
description = """
|
||||||
The path to a folder containing the following folders:
|
The path to a folder containing the following folders:
|
||||||
|
|
||||||
${mipmapDirectories.joinToString("\n") { "- $it" }}
|
${mipmapDirectories.joinToString("\n") { "- $it" }}
|
||||||
|
|
||||||
Each of these folders has to have the following files:
|
Each of these folders has to have the following files:
|
||||||
|
|
||||||
${iconResourceFileNames.joinToString("\n") { "- $it" }}
|
${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) {
|
override fun execute(context: ResourceContext) {
|
||||||
|
|
Loading…
Reference in a new issue