From 04edeed084d9882d3a28950a11e722a3eb2860c7 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Tue, 26 Mar 2024 16:59:13 +0900 Subject: [PATCH] Handle special characters for quantity strings (#4543) A follow-up PR for #4519, which handles special characters for quantity strings. --- .../kotlin/org/jetbrains/compose/resources/StringResources.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/resources/library/src/commonMain/kotlin/org/jetbrains/compose/resources/StringResources.kt b/components/resources/library/src/commonMain/kotlin/org/jetbrains/compose/resources/StringResources.kt index 9e63bf4fe1..00055d584f 100644 --- a/components/resources/library/src/commonMain/kotlin/org/jetbrains/compose/resources/StringResources.kt +++ b/components/resources/library/src/commonMain/kotlin/org/jetbrains/compose/resources/StringResources.kt @@ -81,7 +81,7 @@ private suspend fun parseStringXml(path: String, resourceReader: ResourceReader) val pluralCategory = PluralCategory.fromString( element.getAttribute("quantity"), ) ?: return@mapNotNull null - pluralCategory to element.textContent.orEmpty() + pluralCategory to handleSpecialCharacters(element.textContent.orEmpty()) } pluralElement.getAttribute("name") to StringItem.Plurals(items.toMap()) }