From da5fdbf7c05a9127f04ac5887292457e8335f480 Mon Sep 17 00:00:00 2001 From: Noam Yorav-Raphael Date: Thu, 16 Jan 2014 00:19:48 +0200 Subject: [PATCH] Print a newline after leave=True. Closes issue #6 --- tqdm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tqdm.py b/tqdm.py index bdd8c377..8c210925 100644 --- a/tqdm.py +++ b/tqdm.py @@ -101,6 +101,7 @@ def tqdm(iterable, desc='', total=None, leave=False, file=sys.stderr, if last_print_n < n: cur_t = time.time() sp.print_status(prefix + format_meter(n, total, cur_t-start_t)) + file.write('\n') def trange(*args, **kwargs):