intel/genxml: write a space before the '/>` closing tag

ElementTree.write will do this, and we want to minimize the diff when we
switch from our own writer to the builtin one.

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18955>
This commit is contained in:
Dylan Baker
2022-10-03 10:49:09 -07:00
parent c4482a3c1a
commit b150b89e61
+1 -1
View File
@@ -107,7 +107,7 @@ def print_node(f: typing.TextIO, offset: int, node: et.Element) -> None:
print_node(f, offset + 1, c)
f.write('{0}</{1}>\n'.format(spaces, node.tag))
else:
f.write('/>\n')
f.write(' />\n')
def node_validator(old: et.Element, new: et.Element) -> bool: