Commit 0c7a17fe authored by Daniel Stan's avatar Daniel Stan

affichage: fait cohabiter largeur * et None

parent 48de9f65
......@@ -446,6 +446,10 @@ def tableau(data, titre=None, largeur=None, alignement=None, format=None, dialog
if not largeur :
largeur = [max([len(re.sub(dialog_format if dialog else term_format, '', ligne[i])) for ligne in data]) for i in range(nb_cols)]
elif '*' in largeur or -1 in largeur:
for i in xrange(0, len(largeur)):
if largeur[i] is not None:
continue
largeur[i] = max(len(ligne[i]) for ligne in data)
sum_larg = sum([l for l in largeur if l != '*'])
if width:
cols = width
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment