From: Dylan Baker Date: Thu, 24 Oct 2019 23:14:57 +0000 (-0700) Subject: bin/post_version.py: Pretty print the html X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3d3abb1bcc67891094f03c924fcc7110848eed2;p=mesa.git bin/post_version.py: Pretty print the html Reviewed-by: Eric Engestrom Reviewed-by: Juan A. Suarez Part-of: --- diff --git a/bin/post_version.py b/bin/post_version.py index 5bf68fe35d2..3fbb5e2107c 100755 --- a/bin/post_version.py +++ b/bin/post_version.py @@ -83,7 +83,7 @@ def update_index(is_point: bool, version: str, previous_version: str) -> None: root.insert(index, body) root.insert(index, header) - tree.write(p.as_posix(), method='html') + tree.write(p.as_posix(), method='html', pretty_print=True) def update_release_notes(previous_version: str) -> None: @@ -98,7 +98,7 @@ def update_release_notes(previous_version: str) -> None: ul = tree.xpath('.//ul')[0] ul.insert(0, li) - tree.write(p.as_posix(), method='html') + tree.write(p.as_posix(), method='html', pretty_print=True) def update_calendar(previous_version: str) -> None: @@ -131,7 +131,7 @@ def update_calendar(previous_version: str) -> None: td.set("rowspan", str(rowspan)) new.insert(0, td) - tree.write(p.as_posix(), method='html') + tree.write(p.as_posix(), method='html', pretty_print=True) def main() -> None: