diff --git a/tqdm/notebook.py b/tqdm/notebook.py index 0f531ab9..b3babace 100644 --- a/tqdm/notebook.py +++ b/tqdm/notebook.py @@ -157,6 +157,8 @@ class tqdm_notebook(std_tqdm): pbar.value = self.n if msg: + # take care of space padding in html + msg=msg.translate({ord(' ') : u'\u2007'}) # html escape special characters (like '&') if '' in msg: left, right = map(escape, re.split(r'\|?\|?', msg, maxsplit=1))