From 2e4b506c21adcfc29253b163520d30e0bce8a7ae Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Sat, 19 Oct 2019 12:47:42 -0400 Subject: [PATCH] Update archivebox/index.py Co-Authored-By: Nick Sweeting --- archivebox/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/index.py b/archivebox/index.py index 802a7f0b..0fdf9b62 100644 --- a/archivebox/index.py +++ b/archivebox/index.py @@ -187,7 +187,7 @@ def patch_links_index(link, out_dir=OUTPUT_DIR): # Patch HTML index html_path = os.path.join(out_dir, 'index.html') with open(html_path, 'r') as html_file: - html = [line[:-1] for line in html_file] + html = html_file.read().splitlines() for idx, line in enumerate(html): if title and ('