Skip to content

Commit

Permalink
Merge pull request #1506 from melnikovsky/master
Browse files Browse the repository at this point in the history
fix HTML-escaped space padding in notebook
  • Loading branch information
casperdcl committed Feb 5, 2024
2 parents 422d87e + bdce2af commit cd58fc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tqdm/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def display(self, msg=None, pos=None,
pbar.value = self.n

if msg:
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 cd58fc5

Please sign in to comment.