dist: Neatly indent AndroidManifest.xml

This commit is contained in:
rdb 2025-11-09 12:07:43 +01:00
parent 8a23014cc6
commit 4763ddba21
1 changed files with 2 additions and 0 deletions

View File

@ -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)