瀏覽代碼

dist: Neatly indent AndroidManifest.xml

rdb 1 月之前
父節點
當前提交
4763ddba21
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      direct/src/dist/commands.py

+ 2 - 0
direct/src/dist/commands.py

@@ -900,6 +900,8 @@ class build_apps(setuptools.Command):
             ET.SubElement(intent_filter, 'category').set('android:name', 'android.intent.category.LEANBACK_LAUNCHER')
 
         tree = ET.ElementTree(manifest)
+        if sys.version_info >= (3, 9):
+            ET.indent(tree)
         with open(path, 'wb') as fh:
             tree.write(fh, encoding='utf-8', xml_declaration=True)