correction du bug des 0%

darcs-hash:20061116230348-f46e9-d6ccf89dbb4753a52f29e2810cb1fd91a7fa231a.gz
This commit is contained in:
gdetrez 2006-11-17 00:03:48 +01:00
parent cb801d4734
commit d3c4e0cc0b

View file

@ -170,8 +170,13 @@ def _execute (macro, text):
# Progress # Progress
if text.endswith ('%'): if text.endswith ('%'):
for f in fmt [0] + ' %s' % text, fmt [1] : # correction du bug des 0%
res = cell (res, f) if text == "0%":
for f in [fmt [1]] :
res = cell (res, f)
else:
for f in fmt [0] + ' %s' % text, fmt [1] :
res = cell (res, f)
# Current/Steps # Current/Steps
elif text.find ('/') > 0: elif text.find ('/') > 0: