slight tidy

This commit is contained in:
Casper da Costa-Luis 2024-02-05 21:47:23 +00:00 committed by Casper da Costa-Luis
parent bda614a39b
commit 123cb1c036
No known key found for this signature in database
GPG Key ID: F5126E5FBD2512AD
1 changed files with 1 additions and 2 deletions

View File

@ -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 '<bar/>' in msg:
left, right = map(escape, re.split(r'\|?<bar/>\|?', msg, maxsplit=1))