From 1c609454eda0b0c5f20e1fe41735c808f32552b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Fri, 17 Dec 2021 09:15:43 +0100 Subject: [PATCH] Pretty print generated index. --- macli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macli.py b/macli.py index eaf9e23..cf4ab13 100644 --- a/macli.py +++ b/macli.py @@ -163,7 +163,7 @@ def archive_to_dir(directory, url): selector, directory, attribute, progbar) with open('index.html', 'wt') as f: - f.write(str(archived_content)) + f.write(archived_content.prettify()) os.chdir(current_path)