From 1a09f0a73020c95ee2120ba3b4398167e43b8f2f Mon Sep 17 00:00:00 2001 From: "Brian R. Bondy" Date: Sun, 2 Sep 2018 22:04:25 -0400 Subject: [PATCH] Remove & replacement which causes bad formatting Fix https://github.com/brave/brave-browser/issues/741 --- script/lib/transifex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/lib/transifex.py b/script/lib/transifex.py index 24d05f651a41..5c2c66545338 100644 --- a/script/lib/transifex.py +++ b/script/lib/transifex.py @@ -246,7 +246,7 @@ def generate_xtb_content(lang_code, grd_strings, translations): translationbundle_tag.append(create_xtb_format_translation_tag(fingerprint, translation)) xml_string = lxml.etree.tostring(translationbundle_tag) - xml_string = HTMLParser.HTMLParser().unescape(xml_string.encode('utf-8')).replace('&', '&').encode('utf-8') + xml_string = HTMLParser.HTMLParser().unescape(xml_string.encode('utf-8')).encode('utf-8') xml_string = '\n\n' + xml_string return xml_string