mirror of https://github.com/tqdm/tqdm.git
fix HTML-escaped space padding in notebook (#1506)
This commit is contained in:
parent
ee94a1c69d
commit
bda614a39b
|
@ -157,6 +157,8 @@ class tqdm_notebook(std_tqdm):
|
||||||
pbar.value = self.n
|
pbar.value = self.n
|
||||||
|
|
||||||
if msg:
|
if msg:
|
||||||
|
# take care of space padding in html
|
||||||
|
msg=msg.translate({ord(' ') : u'\u2007'})
|
||||||
# html escape special characters (like '&')
|
# html escape special characters (like '&')
|
||||||
if '<bar/>' in msg:
|
if '<bar/>' in msg:
|
||||||
left, right = map(escape, re.split(r'\|?<bar/>\|?', msg, maxsplit=1))
|
left, right = map(escape, re.split(r'\|?<bar/>\|?', msg, maxsplit=1))
|
||||||
|
|
Loading…
Reference in New Issue