From 35f0c1fffe9d79e1fc4e182d2385f26fd9dfbabe Mon Sep 17 00:00:00 2001 From: xenofem Date: Tue, 12 Mar 2024 04:58:19 -0400 Subject: [PATCH] put newline after generate progress --- dlibrary/dlibrary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlibrary/dlibrary.py b/dlibrary/dlibrary.py index ab14717..16706db 100755 --- a/dlibrary/dlibrary.py +++ b/dlibrary/dlibrary.py @@ -993,7 +993,7 @@ def generate(args): with open(viewer_dir / 'index.html', 'w') as f: f.write(viewer_template.render(depth=3, work=work, title=work['title'])) - print(f'\x1b[2K\r{idx+1}/{len(works)} works processed...', end='') + print(f'\x1b[2K\r{idx+1}/{len(works)} works processed...', end=('' if idx+1 < len(works) else '\n')) def make_categorization(categorization, query, work_filter, work_style_cards=False): categorization_dir = site_dir / categorization