Refactor menu up until attrs

This commit is contained in:
Griatch 2018-07-26 23:41:00 +02:00
parent f27673b741
commit 50c54501f1
4 changed files with 329 additions and 84 deletions

View file

@ -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)