mirror of https://github.com/tqdm/tqdm.git
slight tidy
This commit is contained in:
parent
bda614a39b
commit
123cb1c036
|
@ -157,8 +157,7 @@ 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.replace(' ', u'\u2007') # fix html space padding
|
||||||
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