From e3d3abb1bcc67891094f03c924fcc7110848eed2 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 24 Oct 2019 16:14:57 -0700 Subject: [PATCH] bin/post_version.py: Pretty print the html Reviewed-by: Eric Engestrom Reviewed-by: Juan A. Suarez Part-of: --- bin/post_version.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: -- 2.30.2