Refactor menu up until attrs
This commit is contained in:
parent
f27673b741
commit
50c54501f1
4 changed files with 329 additions and 84 deletions
|
|
@ -938,7 +938,7 @@ class EvMenu(object):
|
|||
for key, desc in optionlist:
|
||||
if not (key or desc):
|
||||
continue
|
||||
desc_string = ": %s" % desc if desc else ""
|
||||
desc_string = ": %s" % (desc if desc else "")
|
||||
table_width_max = max(table_width_max,
|
||||
max(m_len(p) for p in key.split("\n")) +
|
||||
max(m_len(p) for p in desc_string.split("\n")) + colsep)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue