From 123cb1c036dac74e646bdea57056ad4af25a08e0 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Mon, 5 Feb 2024 21:47:23 +0000 Subject: [PATCH] slight tidy --- tqdm/notebook.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tqdm/notebook.py b/tqdm/notebook.py index b3babace..6ee43a6c 100644 --- a/tqdm/notebook.py +++ b/tqdm/notebook.py @@ -157,8 +157,7 @@ class tqdm_notebook(std_tqdm): pbar.value = self.n if msg: - # take care of space padding in html - msg=msg.translate({ord(' ') : u'\u2007'}) + msg = msg.replace(' ', u'\u2007') # fix html space padding # html escape special characters (like '&') if '' in msg: left, right = map(escape, re.split(r'\|?\|?', msg, maxsplit=1))