Browse Source

dist: Neatly indent AndroidManifest.xml

rdb 1 month ago
parent
commit
4763ddba21
1 changed files with 2 additions and 0 deletions
  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)