diff --git a/README.rst b/README.rst index 187b7af7..7fed970a 100644 --- a/README.rst +++ b/README.rst @@ -338,10 +338,10 @@ Parameters [default: '{l_bar}{bar}{r_bar}'], where l_bar='{desc}: {percentage:3.0f}%|' and r_bar='| {n_fmt}/{total_fmt} [{elapsed}<{remaining}, ' - '{rate_fmt}{postfix}]' + '{rate_fmt}{postfix}]' Possible vars: l_bar, bar, r_bar, n, n_fmt, total, total_fmt, - percentage, rate, rate_fmt, rate_noinv, rate_noinv_fmt, - rate_inv, rate_inv_fmt, elapsed, remaining, desc, postfix. + percentage, rate, rate_fmt, rate_noinv, rate_noinv_fmt, + rate_inv, rate_inv_fmt, elapsed, remaining, desc, postfix. Note that a trailing ": " is automatically removed after {desc} if the latter is empty. * initial : int, optional diff --git a/tqdm/_tqdm.py b/tqdm/_tqdm.py index 0eafbf0a..2e4218ab 100755 --- a/tqdm/_tqdm.py +++ b/tqdm/_tqdm.py @@ -691,11 +691,13 @@ class tqdm(object): (current/instantaneous speed) [default: 0.3]. bar_format : str, optional Specify a custom bar string formatting. May impact performance. - If unspecified, will use '{l_bar}{bar}{r_bar}', where l_bar is - '{desc}: {percentage:3.0f}%|' and r_bar is - '| {n_fmt}/{total_fmt} [{elapsed}<{remaining}, {rate_fmt}]' - Possible vars: bar, n, n_fmt, total, total_fmt, percentage, - rate, rate_fmt, elapsed, remaining, l_bar, r_bar, desc. + [default: '{l_bar}{bar}{r_bar}'], where + l_bar='{desc}: {percentage:3.0f}%|' and + r_bar='| {n_fmt}/{total_fmt} [{elapsed}<{remaining}, ' + '{rate_fmt}{postfix}]' + Possible vars: l_bar, bar, r_bar, n, n_fmt, total, total_fmt, + percentage, rate, rate_fmt, rate_noinv, rate_noinv_fmt, + rate_inv, rate_inv_fmt, elapsed, remaining, desc, postfix. Note that a trailing ": " is automatically removed after {desc} if the latter is empty. initial : int, optional