diff --git a/tools/remove-unused-and-blank-translations.py b/tools/remove-unused-and-blank-translations.py index e25e6ca4c..4479ec336 100755 --- a/tools/remove-unused-and-blank-translations.py +++ b/tools/remove-unused-and-blank-translations.py @@ -67,10 +67,11 @@ for d in sorted(glob.glob(os.path.join(resdir, 'values-*'))): count += 1 result = re.sub(r' />', r'/>', ElementTree.tostring(root, encoding='utf-8').decode('utf-8')) + result = re.sub(r'resources>\n ', r'', result) with open(str_path, 'w+') as f: - f.write(header) + f.write(re.sub(r"'", r'"', header)) f.write(result) - f.write('\n') sys.exit(count)