Skip to content

Commit

Permalink
slight tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Feb 5, 2024
1 parent e0155c7 commit bdce2af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tqdm/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ def display(self, msg=None, pos=None,
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))
Expand Down

0 comments on commit bdce2af

Please sign in to comment.