Skip to content

Commit

Permalink
Fixed plural escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
biodranik committed Aug 7, 2021
1 parent 38f1761 commit 649967b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/twine/formatters/android.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def key_value_pattern

def format_plural_keys(key, plural_hash)
result = "\t<plurals name=\"#{key}\">\n"
result += plural_hash.map{|quantity,value| "\t#{' ' * 2}<item quantity=\"#{quantity}\">#{value}</item>"}.join("\n")
result += plural_hash.map{|quantity,value| "\t#{' ' * 2}<item quantity=\"#{quantity}\">#{escape_value(value)}</item>"}.join("\n")
result += "\n\t</plurals>"
end

Expand Down

0 comments on commit 649967b

Please sign in to comment.