Skip to content

Commit

Permalink
Remove & replacement which causes bad formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bbondy committed Sep 3, 2018
1 parent 14166b1 commit 1a09f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/lib/transifex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<?xml version="1.0" ?>\n<!DOCTYPE translationbundle>\n' + xml_string
return xml_string

Expand Down

0 comments on commit 1a09f0a

Please sign in to comment.