Skip to content

Commit

Permalink
Handle special characters for quantity strings (#4543)
Browse files Browse the repository at this point in the history
A follow-up PR for #4519, which handles special characters for quantity
strings.
  • Loading branch information
paxbun committed Mar 26, 2024
1 parent 68dc610 commit 04edeed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit 04edeed

Please sign in to comment.