mirror of https://github.com/CIRCL/AIL-framework
fix: [ModulesInformationV2] fix #244
parent
5732d7b134
commit
2e763ba0aa
|
@ -724,6 +724,7 @@ def format_string(tab, padding_row):
|
|||
text=""
|
||||
for ite, elem in enumerate(the_array):
|
||||
|
||||
if elem is not None and type(elem) is str:
|
||||
if len(elem) > padding_row[ite]:
|
||||
text += "*" + elem[-padding_row[ite]+6:]
|
||||
padd_off = " "*5
|
||||
|
@ -731,6 +732,7 @@ def format_string(tab, padding_row):
|
|||
text += elem
|
||||
padd_off = " "*0
|
||||
text += (padding_row[ite] - len(elem))*" " + padd_off
|
||||
|
||||
printstring.append( (text, the_pid) )
|
||||
return printstring
|
||||
|
||||
|
|
Loading…
Reference in New Issue