bin/post_version.py: Pretty print the html
authorDylan Baker <dylan@pnwbakers.com>
Thu, 24 Oct 2019 23:14:57 +0000 (16:14 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 5 Mar 2020 23:14:56 +0000 (15:14 -0800)
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2505>

bin/post_version.py

index 5bf68fe35d2646a26d0b4d0a27a7d5bcf5fb26bc..3fbb5e2107cc9c162e5345f98d4bc3b6b3394213 100755 (executable)
@@ -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: