Pretty print generated index.

This commit is contained in:
Sergio Martínez Portela 2021-12-17 09:15:43 +01:00
parent db86d2686a
commit 1c609454ed

View File

@ -163,7 +163,7 @@ def archive_to_dir(directory, url):
selector, directory, attribute, progbar) selector, directory, attribute, progbar)
with open('index.html', 'wt') as f: with open('index.html', 'wt') as f:
f.write(str(archived_content)) f.write(archived_content.prettify())
os.chdir(current_path) os.chdir(current_path)